Skip to content

Commit eefa39d

Browse files
author
Kaushik Gopal
committed
fix: import + api correction from merge
1 parent 13603d8 commit eefa39d

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

app/src/main/java/com/morihacky/android/rxjava/rxbus/RxBusDemo_Bottom1Fragment.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,10 @@ public void onStart() {
4444
_subscriptions = new CompositeSubscription();
4545

4646
_subscriptions//
47-
.add(_rxBus.toObserverable()//
48-
.subscribe(new Action1<Object>() {
49-
@Override
50-
public void call(Object event) {
51-
if (event instanceof RxBusDemoFragment.TapEvent) {
52-
_showTapText();
53-
}
47+
.add(_rxBus.asObservable()//
48+
.subscribe(event -> {
49+
if (event instanceof RxBusDemoFragment.TapEvent) {
50+
_showTapText();
5451
}
5552
}));
5653
}

0 commit comments

Comments
 (0)