aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-05-28 06:26:09 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-28 06:26:09 +0000
commit9d1ee4ae5afa0714e225bf034efce70520f5a2f4 (patch)
tree5d5bec9ea21687e55f45f73efc526be79e54a0ab /java/src
parente03eca7c3a6ec3ef592d2b1c71638989dc837b1a (diff)
parent16a01e7c0d69d393c8e903e4a7c9f8391a0e4398 (diff)
downloadlatinime-9d1ee4ae5afa0714e225bf034efce70520f5a2f4.tar.gz
latinime-9d1ee4ae5afa0714e225bf034efce70520f5a2f4.tar.xz
latinime-9d1ee4ae5afa0714e225bf034efce70520f5a2f4.zip
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: Ic168a7cbb656a3939061ad58bd0cc7991c0ceff1
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 737bd0d3e..a99f0b48c 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -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);