mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 12:00:03 +03:00
code review
This commit is contained in:
parent
a41bec9476
commit
c0b01dff70
2 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ class CreateSpaceViewModel @AssistedInject constructor(
|
|||
}
|
||||
|
||||
private fun stopListenToIdentityManager() {
|
||||
identityService.addListener(identityServerManagerListener)
|
||||
identityService.removeListener(identityServerManagerListener)
|
||||
}
|
||||
|
||||
override fun onCleared() {
|
||||
|
|
Loading…
Reference in a new issue