File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
rxflux/src/main/java/com/hardsoftstudio/rxflux/dispatcher Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 88import com .hardsoftstudio .rxflux .util .LoggerManager ;
99
1010import rx .Subscription ;
11+ import rx .android .schedulers .AndroidSchedulers ;
1112import rx .functions .Action1 ;
1213import rx .functions .Func1 ;
1314
@@ -62,7 +63,8 @@ public <T extends RxViewDispatch> void subscribeRxError(final T object) {
6263 @ Override public Boolean call (Object o ) {
6364 return o instanceof RxError ;
6465 }
65- }).subscribe (new Action1 <Object >() {
66+ }).observeOn (AndroidSchedulers .mainThread ())
67+ .subscribe (new Action1 <Object >() {
6668 @ Override public void call (Object o ) {
6769 logger .logRxError (tag , (RxError ) o );
6870 object .onRxError ((RxError ) o );
@@ -80,7 +82,8 @@ public <T extends RxViewDispatch> void subscribeRxView(final T object) {
8082 @ Override public Boolean call (Object o ) {
8183 return o instanceof RxStoreChange ;
8284 }
83- }).subscribe (new Action1 <Object >() {
85+ }).observeOn (AndroidSchedulers .mainThread ())
86+ .subscribe (new Action1 <Object >() {
8487 @ Override public void call (Object o ) {
8588 logger .logRxStore (tag , (RxStoreChange ) o );
8689 object .onRxStoreChanged ((RxStoreChange ) o );
You can’t perform that action at this time.
0 commit comments