feat(ui): save theme selection to preferences

This commit is contained in:
2026-03-28 22:37:55 +01:00
parent 93008f7247
commit d0e412ca83
2 changed files with 11 additions and 2 deletions
@@ -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)