use of com.yydcdut.note.views.service.ISandBoxServiceView in project PhotoNoter by yydcdut.
the class SandBoxServicePresenterImpl method attachView.
@Override
public void attachView(IView iView) {
mSandBoxServiceView = (ISandBoxServiceView) iView;
mSandBoxServiceView.notification();
mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
finishSandBoxService();
}
};
mRxSandBox.findAll().flatMap(sandPhotos -> Observable.from(sandPhotos)).subscribe((sandPhoto -> makePhoto(sandPhoto)), (throwable -> YLog.e(throwable)), (() -> mHandler.sendEmptyMessageDelayed(0, 4000)));
}
Aggregations