Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,28 +94,28 @@ public void loadData(UsBoxEntity usBoxEntity, Movieinfo comingSoon, Movieinfo in
}


public void downLoadImage(Observable<Bitmap> observable){
observable.subscribeOn(Schedulers.io())
.onBackpressureBuffer()
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Subscriber<Bitmap>() {
@Override
public void onCompleted() {

}

@Override
public void onError(Throwable e) {
log.e(e.toString());
}

@Override
public void onNext(Bitmap s) {
// imageView.setImageDrawable(new BitmapDrawable(getResources(),s));
log.d(s);
}
});
}
// public void downLoadImage(Observable<Bitmap> observable){
// observable.subscribeOn(Schedulers.io())
// .onBackpressureBuffer()
// .observeOn(AndroidSchedulers.mainThread())
// .subscribe(new Subscriber<Bitmap>() {
// @Override
// public void onCompleted() {
//
// }
//
// @Override
// public void onError(Throwable e) {
// log.e(e.toString());
// }
//
// @Override
// public void onNext(Bitmap s) {
//// imageView.setImageDrawable(new BitmapDrawable(getResources(),s));
// log.d(s);
// }
// });
// }



Expand Down