This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.database.Cursor; | |
import android.support.v4.content.LocalBroadcastManager; | |
import android.support.v4.util.LongSparseArray; | |
import android.util.SparseArray; | |
import io.reactivex.Observable; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A Jsoup body converter for Retrofit | |
* | |
* Sample usage (with Rx): | |
* Retrofit.Builder() | |
* .addCallAdapterFactory(RxJava2CallAdapterFactory.createAsync()) | |
* .addConverterFactory(JsoupConverterFactory) | |
* .build() | |
* | |
* Then you can declare in you Retrofit interface return type: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A lightweight Kotlin extension for java.util.logging.Logger simple support | |
* | |
* Usage: | |
* | |
* At top level add: | |
* private val log = logger<MyClass>() | |
* | |
* Then on class body: | |
* log.info "Some log" |
NewerOlder