mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
BIT-2318: Clear input when VaultUnlockViewModel is cleared (#1355)
This commit is contained in:
parent
903aa26876
commit
2d80a215c5
1 changed files with 7 additions and 0 deletions
|
@ -109,6 +109,13 @@ class VaultUnlockViewModel @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
override fun onCleared() {
|
||||
// TODO: This is required because there is an OS-level leak occurring that leaves the
|
||||
// ViewModel in memory. We should remove this when that leak is fixed. (BIT-2287)
|
||||
mutableStateFlow.update { it.copy(input = "") }
|
||||
super.onCleared()
|
||||
}
|
||||
|
||||
override fun handleAction(action: VaultUnlockAction) {
|
||||
when (action) {
|
||||
VaultUnlockAction.AddAccountClick -> handleAddAccountClick()
|
||||
|
|
Loading…
Reference in a new issue