diff --git a/app/src/main/java/com/rxjava2/android/samples/ui/operators/DisposableExampleActivity.java b/app/src/main/java/com/rxjava2/android/samples/ui/operators/DisposableExampleActivity.java index 9e51b3c..7d2afe0 100644 --- a/app/src/main/java/com/rxjava2/android/samples/ui/operators/DisposableExampleActivity.java +++ b/app/src/main/java/com/rxjava2/android/samples/ui/operators/DisposableExampleActivity.java @@ -48,7 +48,7 @@ public void onClick(View view) { @Override protected void onDestroy() { super.onDestroy(); - disposables.clear(); // do not send event after activity has been destroyed + disposables.dispose(); // do not send event after activity has been destroyed } /*