fixing a check

This commit is contained in:
Tibor Kaputa 2023-06-15 09:19:51 +02:00 committed by GitHub
parent 471b3f25cc
commit af0f05c299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ import com.simplemobiletools.keyboard.databases.ClipsDatabase
import com.simplemobiletools.keyboard.helpers.*
import com.simplemobiletools.keyboard.interfaces.ClipsDao
val Context.config: Config get() = Config.newInstance(applicationContext.safeStorageContext)
val Context.safeStorageContext: Context
@ -32,7 +31,7 @@ val Context.safeStorageContext: Context
val Context.isDeviceInDirectBootMode: Boolean
get() {
val userManager = getSystemService(Context.USER_SERVICE) as UserManager
return isNougatPlus() && userManager.isUserUnlocked
return isNougatPlus() && !userManager.isUserUnlocked
}
val Context.clipsDB: ClipsDao