diff options
author | 2021-05-28 05:38:10 +0000 | |
---|---|---|
committer | 2021-05-28 05:38:10 +0000 | |
commit | 7ae00baa874e15e5e18a3f79261700ab682ee9af (patch) | |
tree | 5d5bec9ea21687e55f45f73efc526be79e54a0ab /java | |
parent | 685abcb913a626bce9cac9e4cab61eb51d86660f (diff) | |
parent | 407f8a3216ad1ec403ed1c3aeb7c46192eae3cd8 (diff) | |
download | latinime-7ae00baa874e15e5e18a3f79261700ab682ee9af.tar.gz latinime-7ae00baa874e15e5e18a3f79261700ab682ee9af.tar.xz latinime-7ae00baa874e15e5e18a3f79261700ab682ee9af.zip |
Merge "Fix Keyboard Theme update when device orientation changed"
Diffstat (limited to 'java')
-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); |