mirror of
https://github.com/Michatec/Radio.git
synced 2026-05-31 05:22:40 +02:00
feat(ui): save theme selection to preferences
This commit is contained in:
@@ -223,6 +223,14 @@ object PreferencesHelper {
|
||||
}
|
||||
|
||||
|
||||
/* Save currently selected app theme */
|
||||
fun saveThemeSelection(theme: String) {
|
||||
sharedPreferences.edit {
|
||||
putString(Keys.PREF_THEME_SELECTION, theme)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Loads value of the option: Edit Stations */
|
||||
fun loadEditStationsEnabled(context: Context): Boolean {
|
||||
val defaultValue = !context.packageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)
|
||||
|
||||
Reference in New Issue
Block a user