mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-06-05 21:49:26 +02:00
Added additional lockScreen check
This commit is contained in:
@@ -38,7 +38,7 @@ val Context.isDeviceInDirectBootMode: Boolean
|
|||||||
val Context.isDeviceLocked: Boolean
|
val Context.isDeviceLocked: Boolean
|
||||||
get() {
|
get() {
|
||||||
val keyguardManager = getSystemService(Context.KEYGUARD_SERVICE) as KeyguardManager
|
val keyguardManager = getSystemService(Context.KEYGUARD_SERVICE) as KeyguardManager
|
||||||
return keyguardManager.isDeviceLocked || isDeviceInDirectBootMode
|
return keyguardManager.isDeviceLocked || keyguardManager.isKeyguardLocked || isDeviceInDirectBootMode
|
||||||
}
|
}
|
||||||
|
|
||||||
val Context.clipsDB: ClipsDao
|
val Context.clipsDB: ClipsDao
|
||||||
|
Reference in New Issue
Block a user