This file contains 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQENBFZ6eMcBCADbiIpObH0Q+c7M0kH+GrqsYaHwb3TdekWZCoObv50ad6QcaaCJ | |
yTPiDixxQ5ZGgZO8ANmkMfTvjjuztqHO1Mxa65Y2fnFTbHlRKca1FVCT2FpTwfea | |
OJlV3sz47tiPW5UX1kSzFs8nGhPCyiTPeQGZNuboX+ExXrTxBmTGplHZ0nXtGYXO | |
igOrI3g7bJ0ckjAbfQj3mM6vtFpisRHymUlfCrzkHtZLC2HxGKBD+u2+WBJ0Ak3N | |
SWlpWZDpClW7PBG2d49nT7DIXWKzbUhtEJFbQvKOGhWrk1GVzI5a60ZXXjbZV61h | |
t17j7D6cYe+/mFOvedfkn2vo1+El1aYNi/FzABEBAAG0JkJpdFRvcnJlbnQsIElu | |
Yy4gPHN1cHBvcnRAZ2V0c3luYy5jb20+iQEfBDABCAAJBQJXa5dbAh0gAAoJEAXN | |
QwMkhEFLohkH/0Dz0fTFrEqSRqidxkUzH5KlT0jeVtXQu+pUTtcEo5uVuWY8snVA |
This file contains 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.Context; | |
import android.support.annotation.IntDef; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; |
This file contains 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.support.annotation.Nullable; | |
import android.support.v7.widget.RecyclerView; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Created by Qiyulan on 2016/5/17 0017. | |
* <p> |
This file contains 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
public static <T extends BaseBean> Observable.Transformer<T, T> preHandle() { | |
return new Observable.Transformer<T, T>() { | |
@Override | |
public Observable<T> call(Observable<T> responseObservable) { | |
return responseObservable.lift(RetrofitNetwork.<T>sOperator()) | |
.subscribeOn(Schedulers.io()) | |
.observeOn(AndroidSchedulers.mainThread()); | |
} | |
}; | |
} |