Skip to content

Commit af0f05c

Browse files
authored
fixing a check
1 parent 471b3f2 commit af0f05c

File tree

1 file changed

+1
-2
lines changed
  • app/src/main/kotlin/com/simplemobiletools/keyboard/extensions

1 file changed

+1
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import com.simplemobiletools.keyboard.databases.ClipsDatabase
1919
import com.simplemobiletools.keyboard.helpers.*
2020
import com.simplemobiletools.keyboard.interfaces.ClipsDao
2121

22-
2322
val Context.config: Config get() = Config.newInstance(applicationContext.safeStorageContext)
2423

2524
val Context.safeStorageContext: Context
@@ -32,7 +31,7 @@ val Context.safeStorageContext: Context
3231
val Context.isDeviceInDirectBootMode: Boolean
3332
get() {
3433
val userManager = getSystemService(Context.USER_SERVICE) as UserManager
35-
return isNougatPlus() && userManager.isUserUnlocked
34+
return isNougatPlus() && !userManager.isUserUnlocked
3635
}
3736

3837
val Context.clipsDB: ClipsDao

0 commit comments

Comments
 (0)