commit | 16a01e7c0d69d393c8e903e4a7c9f8391a0e4398 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri May 28 06:00:13 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri May 28 06:00:13 2021 +0000 |
tree | 5d5bec9ea21687e55f45f73efc526be79e54a0ab | |
parent | 0605aae4de600edd7aa08d32568ea67a7dac4d3e [diff] | |
parent | 7ae00baa874e15e5e18a3f79261700ab682ee9af [diff] |
Merge "Fix Keyboard Theme update when device orientation changed" am: 7ae00baa87 Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/1721930 Change-Id: I1d756d3f5a24e21b791ec0cd4726dadc1daa0759
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 737bd0d..a99f0b4 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -803,7 +803,8 @@ // 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);