mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-01-24 15:42:00 +01:00
adding a crashfix
This commit is contained in:
parent
8707b03580
commit
3ebf3d4734
@ -162,7 +162,7 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
|
||||
if (keyboardMode != KEYBOARD_LETTERS && code == MyKeyboard.KEYCODE_SPACE) {
|
||||
val originalText = inputConnection.getExtractedText(ExtractedTextRequest(), 0)?.text ?: return
|
||||
inputConnection.commitText(codeChar.toString(), 1)
|
||||
val newText = inputConnection.getExtractedText(ExtractedTextRequest(), 0).text
|
||||
val newText = inputConnection.getExtractedText(ExtractedTextRequest(), 0)?.text
|
||||
switchToLetters = originalText != newText
|
||||
} else {
|
||||
inputConnection.commitText(codeChar.toString(), 1)
|
||||
|
Loading…
Reference in New Issue
Block a user