adding a shared prefs item for handling otg
This commit is contained in:
parent
09536f8bb5
commit
e60229c4cc
3 changed files with 6 additions and 1 deletions
|
@ -7,7 +7,7 @@ buildscript {
|
|||
propMinSdkVersion = 21
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '5.10.12'
|
||||
propVersionName = '5.10.13'
|
||||
kotlin_version = '1.3.21'
|
||||
}
|
||||
|
||||
|
|
|
@ -302,4 +302,8 @@ open class BaseConfig(val context: Context) {
|
|||
else -> DATE_FORMAT_ONE
|
||||
}
|
||||
}
|
||||
|
||||
var wasOTGHandled: Boolean
|
||||
get() = prefs.getBoolean(WAS_OTG_HANDLED, false)
|
||||
set(wasOTGHandled) = prefs.edit().putBoolean(WAS_OTG_HANDLED, wasOTGHandled).apply()
|
||||
}
|
||||
|
|
|
@ -102,6 +102,7 @@ const val WAS_INITIAL_UPGRADE_TO_PRO_SHOWN = "was_initial_upgrade_to_pro_shown"
|
|||
const val WAS_APP_ICON_CUSTOMIZATION_WARNING_SHOWN = "was_app_icon_customization_warning_shown"
|
||||
const val APP_SIDELOADING_STATUS = "app_sideloading_status"
|
||||
const val DATE_FORMAT = "date_format"
|
||||
const val WAS_OTG_HANDLED = "was_otg_handled_2"
|
||||
|
||||
// licenses
|
||||
internal const val LICENSE_KOTLIN = 1
|
||||
|
|
Loading…
Reference in a new issue