Loading services/core/java/com/android/server/inputmethod/InputMethodMenuController.java +8 −11 Original line number Diff line number Diff line Loading @@ -77,13 +77,14 @@ final class InputMethodMenuController { void showInputMethodMenu(boolean showAuxSubtypes, int displayId) { if (DEBUG) Slog.v(TAG, "Show switching menu. showAuxSubtypes=" + showAuxSubtypes); final boolean isScreenLocked = isScreenLocked(); synchronized (ImfLock.class) { final boolean isScreenLocked = mWindowManagerInternal.isKeyguardLocked() && mWindowManagerInternal.isKeyguardSecure(mSettings.getCurrentUserId()); final String lastInputMethodId = mSettings.getSelectedInputMethod(); int lastInputMethodSubtypeId = mSettings.getSelectedInputMethodSubtypeId(lastInputMethodId); int lastInputMethodSubtypeId = mSettings.getSelectedInputMethodSubtypeId(lastInputMethodId); if (DEBUG) Slog.v(TAG, "Current IME: " + lastInputMethodId); synchronized (ImfLock.class) { final List<ImeSubtypeListItem> imList = mSwitchingController .getSortedInputMethodAndSubtypeListForImeMenuLocked( showAuxSubtypes, isScreenLocked); Loading Loading @@ -200,12 +201,8 @@ final class InputMethodMenuController { mService.updateSystemUiLocked(); mService.sendOnNavButtonFlagsChangedLocked(); mSwitchingDialog.show(); } } private boolean isScreenLocked() { return mWindowManagerInternal.isKeyguardLocked() && mWindowManagerInternal.isKeyguardSecure(mSettings.getCurrentUserId()); } } void updateKeyboardFromSettingsLocked() { Loading Loading
services/core/java/com/android/server/inputmethod/InputMethodMenuController.java +8 −11 Original line number Diff line number Diff line Loading @@ -77,13 +77,14 @@ final class InputMethodMenuController { void showInputMethodMenu(boolean showAuxSubtypes, int displayId) { if (DEBUG) Slog.v(TAG, "Show switching menu. showAuxSubtypes=" + showAuxSubtypes); final boolean isScreenLocked = isScreenLocked(); synchronized (ImfLock.class) { final boolean isScreenLocked = mWindowManagerInternal.isKeyguardLocked() && mWindowManagerInternal.isKeyguardSecure(mSettings.getCurrentUserId()); final String lastInputMethodId = mSettings.getSelectedInputMethod(); int lastInputMethodSubtypeId = mSettings.getSelectedInputMethodSubtypeId(lastInputMethodId); int lastInputMethodSubtypeId = mSettings.getSelectedInputMethodSubtypeId(lastInputMethodId); if (DEBUG) Slog.v(TAG, "Current IME: " + lastInputMethodId); synchronized (ImfLock.class) { final List<ImeSubtypeListItem> imList = mSwitchingController .getSortedInputMethodAndSubtypeListForImeMenuLocked( showAuxSubtypes, isScreenLocked); Loading Loading @@ -200,12 +201,8 @@ final class InputMethodMenuController { mService.updateSystemUiLocked(); mService.sendOnNavButtonFlagsChangedLocked(); mSwitchingDialog.show(); } } private boolean isScreenLocked() { return mWindowManagerInternal.isKeyguardLocked() && mWindowManagerInternal.isKeyguardSecure(mSettings.getCurrentUserId()); } } void updateKeyboardFromSettingsLocked() { Loading