In Using Disposable in RxJava
disposables.clear()
is invoked in onStop()
But in the comment and also Github
disposables.clear()
is invoked in onDestroy()
BTW, there are several typos on the page Using Disposable in RxJava:
Let**'s** say there is an observable which emits some values, but while emitting values, the user presses back button, then it must stop emitting values.