mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
android: proper hiding keyboard when entering passcode (#4066)
This commit is contained in:
committed by
GitHub
parent
2b6764fc36
commit
f80ac6dc50
@@ -13,7 +13,7 @@ expect fun LocalMultiplatformView(): Any?
|
||||
|
||||
@Composable
|
||||
expect fun getKeyboardState(): State<KeyboardState>
|
||||
expect fun hideKeyboard(view: Any?)
|
||||
expect fun hideKeyboard(view: Any?, clearFocus: Boolean = false)
|
||||
|
||||
expect fun androidIsFinishingMainActivity(): Boolean
|
||||
|
||||
|
||||
+2
@@ -135,7 +135,9 @@ fun PasscodeView(
|
||||
if (!buttonsEnabled.value) {
|
||||
ProgressIndicator()
|
||||
}
|
||||
val view = LocalMultiplatformView()
|
||||
LaunchedEffect(Unit) {
|
||||
hideKeyboard(view, true)
|
||||
focusRequester.requestFocus()
|
||||
// Disallow to steal a focus by clicking on buttons or using Tab
|
||||
focusRequester.captureFocus()
|
||||
|
||||
Reference in New Issue
Block a user