mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 15:22:07 +00:00
android: proper hiding keyboard when entering passcode (#4066)
This commit is contained in:
1 parent
2b6764fc36
commit
f80ac6dc50
4 files changed
+8
-3
No files matched your search
+4
-1
@@ -67,10 +67,13 @@ actual fun getKeyboardState(): State<KeyboardState> {
|
||||
return keyboardState
|
||||
}
|
||||
|
||||
actual fun hideKeyboard(view: Any?) {
|
||||
actual fun hideKeyboard(view: Any?, clearFocus: Boolean) {
|
||||
// LALAL
|
||||
// LocalSoftwareKeyboardController.current?.hide()
|
||||
if (view is View) {
|
||||
if (clearFocus) {
|
||||
view.clearFocus()
|
||||
}
|
||||
(androidAppContext.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager).hideSoftInputFromWindow(view.windowToken, 0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user