android: fix lock not showing (#3181)

* android: fix lock not showing

* better fix
This commit is contained in:
Stanislav Dmitrenko
2023-10-08 02:00:40 +08:00
committed by GitHub
parent 420d80ad6c
commit 76fb5b6dca
6 changed files with 8 additions and 3 deletions

View File

@@ -91,11 +91,11 @@ class MainActivity: FragmentActivity() {
// When pressed Back and there is no one wants to process the back event, clear auth state to force re-auth on launch
AppLock.clearAuthState()
AppLock.laFailed.value = true
AppLock.destroyedAfterBackPress.value = true
}
if (!onBackPressedDispatcher.hasEnabledCallbacks()) {
// Drop shared content
SimplexApp.context.chatModel.sharedContent.value = null
finish()
}
}
}