update keyboard when input field restarts with change in force ascii flag

This commit is contained in:
Helium314 2023-11-20 00:22:03 +01:00
parent 907c307c2b
commit ea17006570

View file

@ -136,7 +136,8 @@ public final class InputAttributes {
} }
public boolean isSameInputType(final EditorInfo editorInfo) { public boolean isSameInputType(final EditorInfo editorInfo) {
return editorInfo.inputType == mInputType; return editorInfo.inputType == mInputType
&& (mEditorInfo.imeOptions & EditorInfo.IME_FLAG_FORCE_ASCII) == (editorInfo.imeOptions & EditorInfo.IME_FLAG_FORCE_ASCII);
} }
private boolean hasNoMicrophoneKeyOption() { private boolean hasNoMicrophoneKeyOption() {