dispose uiDisposable in onDestroy()
This commit is contained in:
parent
9357059cbc
commit
e3983deacc
|
@ -93,7 +93,6 @@ abstract class VectorBaseActivity : BaseMvRxActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected fun Disposable.disposeOnDestroy(): Disposable {
|
protected fun Disposable.disposeOnDestroy(): Disposable {
|
||||||
// TODO Ganfra: never disposed...
|
|
||||||
uiDisposables.add(this)
|
uiDisposables.add(this)
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
@ -133,6 +132,8 @@ abstract class VectorBaseActivity : BaseMvRxActivity() {
|
||||||
|
|
||||||
unBinder?.unbind()
|
unBinder?.unbind()
|
||||||
unBinder = null
|
unBinder = null
|
||||||
|
|
||||||
|
uiDisposables.dispose()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
|
|
Loading…
Reference in New Issue