Skip to content

Commit

Permalink
Merge pull request #11458 from keymanapp/fix/android/lock-globe
Browse files Browse the repository at this point in the history
fix(android/engine): Handle globe key on lock screen
  • Loading branch information
darcywong00 authored May 16, 2024
2 parents 6097897 + cd2a95a commit d4fd52c
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 d4fd52c

Please sign in to comment.