mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-20 22:29:19 +00:00
Add: Ignore battery optimization's dialog (to fix crashes on A12+)
This commit is contained in:
@ -37,7 +37,8 @@ object Preferences {
|
||||
Key.Theme,
|
||||
Key.DefaultTab,
|
||||
Key.UpdateNotify,
|
||||
Key.UpdateUnstable
|
||||
Key.UpdateUnstable,
|
||||
Key.IgnoreIgnoreBatteryOptimization
|
||||
).map { Pair(it.name, it) }.toMap()
|
||||
|
||||
fun init(context: Context) {
|
||||
@ -178,6 +179,9 @@ object Preferences {
|
||||
|
||||
object UpdateNotify : Key<Boolean>("update_notify", Value.BooleanValue(true))
|
||||
object UpdateUnstable : Key<Boolean>("update_unstable", Value.BooleanValue(false))
|
||||
|
||||
object IgnoreIgnoreBatteryOptimization :
|
||||
Key<Boolean>("ignore_ignore_battery_optimization", Value.BooleanValue(false))
|
||||
}
|
||||
|
||||
sealed class AutoSync(override val valueString: String) : Enumeration<AutoSync> {
|
||||
|
Reference in New Issue
Block a user