mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-02-03 03:09:41 +01:00
Fix action key not updating when switching field
The keyboard was updated before the action key is.
This commit is contained in:
parent
5404e7432d
commit
e303008e66
@ -176,7 +176,6 @@ public class Keyboard2 extends InputMethodService
|
|||||||
_keyboardView = (Keyboard2View)inflate_view(R.layout.keyboard);
|
_keyboardView = (Keyboard2View)inflate_view(R.layout.keyboard);
|
||||||
_emojiPane = null;
|
_emojiPane = null;
|
||||||
}
|
}
|
||||||
_keyboardView.setKeyboard(getLayout(_currentTextLayout));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -186,6 +185,8 @@ public class Keyboard2 extends InputMethodService
|
|||||||
refreshEditorInfo(info);
|
refreshEditorInfo(info);
|
||||||
if ((info.inputType & InputType.TYPE_CLASS_NUMBER) != 0)
|
if ((info.inputType & InputType.TYPE_CLASS_NUMBER) != 0)
|
||||||
_keyboardView.setKeyboard(getLayout(R.xml.numeric));
|
_keyboardView.setKeyboard(getLayout(R.xml.numeric));
|
||||||
|
else
|
||||||
|
_keyboardView.setKeyboard(getLayout(_currentTextLayout));
|
||||||
setInputView(_keyboardView);
|
setInputView(_keyboardView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user