I am using RxJava 2 and I should add a var to my f...
# android
e
I am using RxJava 2 and I should add a var to my fragment to hold the disposable created in
onResume
, and then call
disposable.dispose()
and the
Observable.interval
again when user clicked on retry. I don't need to call dispose in onPause as it is done by RxLifecycle already. Is that right?