dispose uiDisposable in onDestroy()

This commit is contained in:
Benoit Marty 2019-06-04 11:02:40 +02:00
parent 9357059cbc
commit e3983deacc
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,6 @@ abstract class VectorBaseActivity : BaseMvRxActivity() {
}
protected fun Disposable.disposeOnDestroy(): Disposable {
// TODO Ganfra: never disposed...
uiDisposables.add(this)
return this
}
@ -133,6 +132,8 @@ abstract class VectorBaseActivity : BaseMvRxActivity() {
unBinder?.unbind()
unBinder = null
uiDisposables.dispose()
}
override fun onResume() {