aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing-Shin Lu <lumark@google.com>2021-06-18 15:08:19 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-06-18 15:08:19 +0000
commit7f3bcefd9fb12e745383799af86c2eae68e11f4c (patch)
treee4444dfce56d9b592a8c7edf3c81a4220690e537
parent036d3a68d16a4af9678e378abd1b1df771f491fa (diff)
parent6ae09365a56ad87357a01a122de76d77281a97df (diff)
downloadlatinime-7f3bcefd9fb12e745383799af86c2eae68e11f4c.tar.gz
latinime-7f3bcefd9fb12e745383799af86c2eae68e11f4c.tar.xz
latinime-7f3bcefd9fb12e745383799af86c2eae68e11f4c.zip
Fix Keyboard Theme update when device orientation changed am: 6ae09365a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/15021672 Change-Id: I33a6fa7093b4633fc5bbd535b2c3d9d287022bc8
Diffstat (limited to '')
-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);