Fix layout not updating after rotation

Reset the layout on onStartInputView.
This commit is contained in:
Jules Aguillon 2021-05-07 22:10:26 +02:00
parent a036ebc47b
commit 1e6e3ab22a

View File

@ -103,6 +103,7 @@ public class Keyboard2 extends InputMethodService
refreshSubtypeImm();
if ((info.inputType & InputType.TYPE_CLASS_NUMBER) != 0)
_keyboardView.setKeyboard(getLayout(R.xml.numeric));
_keyboardView.reset(); // Layout might need to change due to rotation
}
@Override