super.onClear() called at the end
This commit is contained in:
parent
1540f13444
commit
54f6440bcf
|
@ -89,8 +89,8 @@ class VerificationChooseMethodViewModel @AssistedInject constructor(
|
|||
}
|
||||
|
||||
override fun onCleared() {
|
||||
super.onCleared()
|
||||
session.cryptoService().verificationService().removeListener(this)
|
||||
super.onCleared()
|
||||
}
|
||||
|
||||
companion object : MvRxViewModelFactory<VerificationChooseMethodViewModel, VerificationChooseMethodViewState> {
|
||||
|
|
|
@ -93,8 +93,8 @@ class DiscoverySettingsViewModel @AssistedInject constructor(
|
|||
}
|
||||
|
||||
override fun onCleared() {
|
||||
super.onCleared()
|
||||
stopListenToIdentityManager()
|
||||
super.onCleared()
|
||||
}
|
||||
|
||||
override fun handle(action: DiscoverySettingsAction) {
|
||||
|
|
|
@ -810,9 +810,8 @@ class LoginViewModel @AssistedInject constructor(
|
|||
}
|
||||
|
||||
override fun onCleared() {
|
||||
super.onCleared()
|
||||
|
||||
currentTask?.cancel()
|
||||
super.onCleared()
|
||||
}
|
||||
|
||||
fun getInitialHomeServerUrl(): String? {
|
||||
|
|
|
@ -221,7 +221,7 @@ class RoomDirectoryViewModel @AssistedInject constructor(@Assisted initialState:
|
|||
}
|
||||
|
||||
override fun onCleared() {
|
||||
super.onCleared()
|
||||
currentTask?.cancel()
|
||||
super.onCleared()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -232,8 +232,7 @@ class SoftLogoutViewModel @AssistedInject constructor(
|
|||
}
|
||||
|
||||
override fun onCleared() {
|
||||
super.onCleared()
|
||||
|
||||
currentTask?.cancel()
|
||||
super.onCleared()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,8 +157,8 @@ class ServerBackupStatusViewModel @AssistedInject constructor(@Assisted initialS
|
|||
}
|
||||
|
||||
override fun onCleared() {
|
||||
super.onCleared()
|
||||
session.cryptoService().keysBackupService().removeListener(this)
|
||||
super.onCleared()
|
||||
}
|
||||
|
||||
override fun onStateChange(newState: KeysBackupState) {
|
||||
|
|
|
@ -107,8 +107,8 @@ class SignoutCheckViewModel @AssistedInject constructor(@Assisted initialState:
|
|||
}
|
||||
|
||||
override fun onCleared() {
|
||||
super.onCleared()
|
||||
session.cryptoService().keysBackupService().removeListener(this)
|
||||
super.onCleared()
|
||||
}
|
||||
|
||||
override fun onStateChange(newState: KeysBackupState) {
|
||||
|
|
Loading…
Reference in New Issue