mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-10 00:27:45 +00:00
fix spellchecker crash when keyboard has never been initialized, fixes #684
This commit is contained in:
parent
87f1092eac
commit
382bdb6ff6
2 changed files with 9 additions and 5 deletions
|
@ -100,6 +100,7 @@ public final class InputAttributes {
|
|||
final boolean noMicrophone = mIsPasswordField
|
||||
|| InputTypeUtils.isEmailVariation(variation)
|
||||
|| hasNoMicrophoneKeyOption()
|
||||
|| !RichInputMethodManager.isInitialized() // avoid crash when only using spell checker
|
||||
|| !RichInputMethodManager.getInstance().hasShortcutIme();
|
||||
mShouldShowVoiceInputKey = !noMicrophone;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue