From 8f2d851c08c2b311b2c2a4ca9ba4f28b9db851d1 Mon Sep 17 00:00:00 2001 From: merkost Date: Sun, 18 Jun 2023 13:21:51 +1000 Subject: [PATCH] Added additional lockScreen check --- .../kotlin/com/simplemobiletools/keyboard/extensions/Context.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt index 439f428..34b4c08 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt @@ -38,7 +38,7 @@ val Context.isDeviceInDirectBootMode: Boolean val Context.isDeviceLocked: Boolean get() { val keyguardManager = getSystemService(Context.KEYGUARD_SERVICE) as KeyguardManager - return keyguardManager.isDeviceLocked || isDeviceInDirectBootMode + return keyguardManager.isDeviceLocked || keyguardManager.isKeyguardLocked || isDeviceInDirectBootMode } val Context.clipsDB: ClipsDao