@Test public void autoUnsubscribe() { Subscription subscription = Observable.just("a").subscribe(); rxScreen.autoUnsubscribe(subscription); rxScreen.onHide(null); assertThat(subscription.isUnsubscribed()).isTrue(); }
protected final void autoUnsubscribe(Subscription subscription) { subscriptions.add(subscription); }
RxScreen extends Screen<V> { protected final void autoUnsubscribe(Subscription subscription) { subscriptions.add(subscription); } }
RxScreen extends Screen<V> { protected final void autoUnsubscribe(Subscription subscription) { subscriptions.add(subscription); }  }
RxScreen extends Screen<V> { protected final void autoUnsubscribe(Subscription subscription) { subscriptions.add(subscription); }   }
RxScreen extends Screen<V> { protected final void autoUnsubscribe(Subscription subscription) { subscriptions.add(subscription); }    }