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

Commit 8629784b authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Update config when "Show input method" is changed

This is a follow up CL for I2237ded850a0d4ab43ca441d0b7df1.

Seems that we still need to update config settings every
time when "Show input method" is changed.

BUG: 17666032
Change-Id: I480aeaa038bef9c3c20e8f0b36110e92a35809db
parent 294297df
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -7226,11 +7226,14 @@ public class WindowManagerService extends IWindowManager.Stub
    }

    public void updateShowImeWithHardKeyboard() {
        boolean showImeWithHardKeyboard = Settings.Secure.getIntForUser(
        final boolean showImeWithHardKeyboard = Settings.Secure.getIntForUser(
                mContext.getContentResolver(), Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD, 0,
                mCurrentUserId) == 1;
        synchronized (mWindowMap) {
            if (mShowImeWithHardKeyboard != showImeWithHardKeyboard) {
                mShowImeWithHardKeyboard = showImeWithHardKeyboard;
                mH.sendEmptyMessage(H.SEND_NEW_CONFIGURATION);
            }
        }
    }