forked from extern/Unexpected-Keyboard
Fix layout not updating after rotation
Reset the layout on onStartInputView.
This commit is contained in:
parent
a036ebc47b
commit
1e6e3ab22a
@ -103,6 +103,7 @@ public class Keyboard2 extends InputMethodService
|
|||||||
refreshSubtypeImm();
|
refreshSubtypeImm();
|
||||||
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));
|
||||||
|
_keyboardView.reset(); // Layout might need to change due to rotation
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user