mirror of
https://github.com/FossifyOrg/Keyboard.git
synced 2026-04-18 12:57:20 -04:00
chore: remove redundant nougat check at Context.safeStorageContext extension (#418)
This commit is contained in:
@@ -39,7 +39,7 @@ import org.fossify.keyboard.interfaces.ClipsDao
|
||||
val Context.config: Config get() = Config.newInstance(applicationContext.safeStorageContext)
|
||||
|
||||
val Context.safeStorageContext: Context
|
||||
get() = if (isNougatPlus() && isDeviceInDirectBootMode) {
|
||||
get() = if (isDeviceInDirectBootMode) {
|
||||
createDeviceProtectedStorageContext()
|
||||
} else {
|
||||
this
|
||||
|
||||
Reference in New Issue
Block a user