mirror of
https://github.com/bitwarden/android.git
synced 2026-07-27 16:50:40 -05:00
PM-10528: Fix user switching issue due to rapid Activity recreation when locking (#3669)
This commit is contained in:
@@ -112,6 +112,10 @@ class MainViewModel @Inject constructor(
|
||||
.onEach {
|
||||
when (it) {
|
||||
is VaultStateEvent.Locked -> {
|
||||
// Similar to account switching, triggering this action too soon can
|
||||
// interfere with animations or navigation logic, so we will delay slightly.
|
||||
@Suppress("MagicNumber")
|
||||
delay(500)
|
||||
trySendAction(MainAction.Internal.VaultUnlockStateChange)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user