diff --git a/app/src/main/java/com/rxjava2/android/samples/ui/operators/IntervalExampleActivity.java b/app/src/main/java/com/rxjava2/android/samples/ui/operators/IntervalExampleActivity.java index 36baeaf..389c2de 100644 --- a/app/src/main/java/com/rxjava2/android/samples/ui/operators/IntervalExampleActivity.java +++ b/app/src/main/java/com/rxjava2/android/samples/ui/operators/IntervalExampleActivity.java @@ -46,7 +46,7 @@ public void onClick(View view) { @Override protected void onDestroy() { super.onDestroy(); - disposables.clear(); // clearing it : do not emit after destroy + disposables.dispose(); //disposeing it : so it do not perform unnecessary emittion } /* @@ -93,4 +93,4 @@ public void onComplete() { } -} \ No newline at end of file +}