Merge "Fix Keyboard Theme update when device orientation changed" am: 7ae00baa87
am: 16a01e7c0d
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/1721930 Change-Id: Ic168a7cbb656a3939061ad58bd0cc7991c0ceff1main
commit
9d1ee4ae5a
|
@ -803,7 +803,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||
// create new display context and re-init keyboard layout with this context.
|
||||
final WindowManager wm = getSystemService(WindowManager.class);
|
||||
final int newDisplayId = wm.getDefaultDisplay().getDisplayId();
|
||||
if (mCurDisplayId != newDisplayId) {
|
||||
if (mCurDisplayId != newDisplayId || !mDisplayContext.getResources().getConfiguration()
|
||||
.equals(getResources().getConfiguration())) {
|
||||
mCurDisplayId = newDisplayId;
|
||||
mDisplayContext = createDisplayContext(wm.getDefaultDisplay());
|
||||
mKeyboardSwitcher.updateKeyboardTheme(mDisplayContext);
|
||||
|
|
Loading…
Reference in New Issue