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 471b3f2 commit af0f05cCopy full SHA for af0f05c
1 file changed
app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt
@@ -19,7 +19,6 @@ import com.simplemobiletools.keyboard.databases.ClipsDatabase
19
import com.simplemobiletools.keyboard.helpers.*
20
import com.simplemobiletools.keyboard.interfaces.ClipsDao
21
22
-
23
val Context.config: Config get() = Config.newInstance(applicationContext.safeStorageContext)
24
25
val Context.safeStorageContext: Context
@@ -32,7 +31,7 @@ val Context.safeStorageContext: Context
32
31
val Context.isDeviceInDirectBootMode: Boolean
33
get() {
34
val userManager = getSystemService(Context.USER_SERVICE) as UserManager
35
- return isNougatPlus() && userManager.isUserUnlocked
+ return isNougatPlus() && !userManager.isUserUnlocked
36
}
37
38
val Context.clipsDB: ClipsDao
0 commit comments