We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 409e3f4 commit 8f2d851Copy full SHA for 8f2d851
app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt
@@ -38,7 +38,7 @@ val Context.isDeviceInDirectBootMode: Boolean
38
val Context.isDeviceLocked: Boolean
39
get() {
40
val keyguardManager = getSystemService(Context.KEYGUARD_SERVICE) as KeyguardManager
41
- return keyguardManager.isDeviceLocked || isDeviceInDirectBootMode
+ return keyguardManager.isDeviceLocked || keyguardManager.isKeyguardLocked || isDeviceInDirectBootMode
42
}
43
44
val Context.clipsDB: ClipsDao
0 commit comments