Skip to content

Commit

Permalink
cherrypick(android): Handle globe key on lock screen
Browse files Browse the repository at this point in the history
Cherrypick #11458 to stable-17.0
  • Loading branch information
darcywong00 committed May 17, 2024
1 parent 25be8c1 commit d71e611
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2361,7 +2361,7 @@ public static void handleGlobeKeyAction(Context context, boolean globeKeyDown, K
if (KMManager.shouldAllowSetKeyboard()) {
// inKeyguardRestrictedInputMode() deprecated, so check isKeyguardLocked() to determine if screen is locked
if (isLocked()) {
if (keyboardType == KeyboardType.KEYBOARD_TYPE_SYSTEM && globeKeyState == GlobeKeyState.GLOBE_KEY_STATE_UP) {
if (keyboardType == KeyboardType.KEYBOARD_TYPE_SYSTEM && globeKeyState == GlobeKeyState.GLOBE_KEY_STATE_DOWN) {
doGlobeKeyLockscreenAction(context);
}
// clear globeKeyState
Expand Down

0 comments on commit d71e611

Please sign in to comment.