mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-19 05:49:18 +00:00
Add: Dynamic theming preference
This commit is contained in:
@ -241,6 +241,12 @@ val isBlackTheme: Boolean
|
||||
else -> false
|
||||
}
|
||||
|
||||
val isDynamicColorsTheme: Boolean
|
||||
get() = when (Preferences[Preferences.Key.Theme]) {
|
||||
is Preferences.Theme.Dynamic -> true
|
||||
else -> false
|
||||
}
|
||||
|
||||
fun Context.showBatteryOptimizationDialog() {
|
||||
AlertDialog.Builder(this)
|
||||
.setTitle(R.string.ignore_battery_optimization_title)
|
||||
|
Reference in New Issue
Block a user