mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-04 13:50:42 +00:00
fix npe
This commit is contained in:
parent
6ec03290a5
commit
92815c6af6
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ 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 != null
|
||||||
&& (mEditorInfo.imeOptions & EditorInfo.IME_FLAG_FORCE_ASCII) == (editorInfo.imeOptions & EditorInfo.IME_FLAG_FORCE_ASCII);
|
&& (mEditorInfo.imeOptions & EditorInfo.IME_FLAG_FORCE_ASCII) == (editorInfo.imeOptions & EditorInfo.IME_FLAG_FORCE_ASCII);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue