diff options
author | 2021-05-28 06:26:09 +0000 | |
---|---|---|
committer | 2021-05-28 06:26:09 +0000 | |
commit | 9d1ee4ae5afa0714e225bf034efce70520f5a2f4 (patch) | |
tree | 5d5bec9ea21687e55f45f73efc526be79e54a0ab /java/src | |
parent | e03eca7c3a6ec3ef592d2b1c71638989dc837b1a (diff) | |
parent | 16a01e7c0d69d393c8e903e4a7c9f8391a0e4398 (diff) | |
download | latinime-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.java | 3 |
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); |