Skip to content

Commit

Permalink
Merge pull request #215 from caarmen/fix-auto-theme
Browse files Browse the repository at this point in the history
Fix retrieving the theme as auto by default if it hasn't been set yet.
  • Loading branch information
caarmen authored Jan 5, 2025
2 parents 463fafe + 8a32368 commit 5b4c9f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class SettingsPrefs(application: Application) {

var theme: String
get() {
return sharedPreferences.getString(PREF_THEME, THEME_LIGHT) ?: THEME_AUTO
return sharedPreferences.getString(PREF_THEME, THEME_AUTO) ?: THEME_AUTO
}
set(newValue) {
sharedPreferences.edit().putString(PREF_THEME, newValue).apply()
Expand Down

0 comments on commit 5b4c9f7

Please sign in to comment.