Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f3bcefd authored by Ming-Shin Lu's avatar Ming-Shin Lu Committed by Automerger Merge Worker
Browse files

Fix Keyboard Theme update when device orientation changed am: 6ae09365

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/15021672

Change-Id: I33a6fa7093b4633fc5bbd535b2c3d9d287022bc8
parents 036d3a68 6ae09365
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -803,7 +803,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
        // create new display context and re-init keyboard layout with this context.
        // create new display context and re-init keyboard layout with this context.
        final WindowManager wm = getSystemService(WindowManager.class);
        final WindowManager wm = getSystemService(WindowManager.class);
        final int newDisplayId = wm.getDefaultDisplay().getDisplayId();
        final int newDisplayId = wm.getDefaultDisplay().getDisplayId();
        if (mCurDisplayId != newDisplayId) {
        if (mCurDisplayId != newDisplayId || !mDisplayContext.getResources().getConfiguration()
                        .equals(getResources().getConfiguration())) {
            mCurDisplayId = newDisplayId;
            mCurDisplayId = newDisplayId;
            mDisplayContext = createDisplayContext(wm.getDefaultDisplay());
            mDisplayContext = createDisplayContext(wm.getDefaultDisplay());
            mKeyboardSwitcher.updateKeyboardTheme(mDisplayContext);
            mKeyboardSwitcher.updateKeyboardTheme(mDisplayContext);