From d71e611a45f05d68249fe9ebbe8e4d046f8e780b Mon Sep 17 00:00:00 2001 From: Darcy Wong Date: Thu, 16 May 2024 22:04:03 +0700 Subject: [PATCH] cherrypick(android): Handle globe key on lock screen Cherrypick #11458 to stable-17.0 --- android/KMEA/app/src/main/java/com/keyman/engine/KMManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/KMEA/app/src/main/java/com/keyman/engine/KMManager.java b/android/KMEA/app/src/main/java/com/keyman/engine/KMManager.java index b31fe425066..e4edeb9d821 100644 --- a/android/KMEA/app/src/main/java/com/keyman/engine/KMManager.java +++ b/android/KMEA/app/src/main/java/com/keyman/engine/KMManager.java @@ -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