code review

This commit is contained in:
Valere 2021-09-14 15:25:40 +02:00
parent a41bec9476
commit c0b01dff70
2 changed files with 8 additions and 1 deletions

View file

@ -22,6 +22,7 @@ import android.view.View
import android.view.ViewGroup
import com.airbnb.mvrx.activityViewModel
import im.vector.app.R
import im.vector.app.core.extensions.cleanup
import im.vector.app.core.extensions.configureWith
import im.vector.app.core.extensions.hideKeyboard
import im.vector.app.core.platform.OnBackPressed
@ -70,6 +71,12 @@ class CreateSpaceAdd3pidInvitesFragment @Inject constructor(
}
}
override fun onDestroyView() {
views.recyclerView.cleanup()
epoxyController.listener = null
super.onDestroyView()
}
override fun getBinding(inflater: LayoutInflater, container: ViewGroup?) =
FragmentSpaceCreateGenericEpoxyFormBinding.inflate(layoutInflater, container, false)

View file

@ -85,7 +85,7 @@ class CreateSpaceViewModel @AssistedInject constructor(
}
private fun stopListenToIdentityManager() {
identityService.addListener(identityServerManagerListener)
identityService.removeListener(identityServerManagerListener)
}
override fun onCleared() {