Added additional lockScreen check

This commit is contained in:
merkost 2023-06-18 13:21:51 +10:00
parent 409e3f4c35
commit 8f2d851c08
1 changed files with 1 additions and 1 deletions

View File

@ -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