Added additional lockScreen check
This commit is contained in:
parent
409e3f4c35
commit
8f2d851c08
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue