Skip to content

Commit

Permalink
fix default THEME value
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkempire78 committed Nov 1, 2023
1 parent 7d486de commit 55ffda3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class Themes(private val context: Context) {
var theme = MyPreferences(context).theme
if (theme == -1) {
theme = if (DynamicColors.isDynamicColorAvailable()) MATERIAL_YOU_THEME_INDEX else DEFAULT_THEME_INDEX
MyPreferences(context).theme = theme
}
return themeMap[theme] ?: DEFAULT_THEME_INDEX
}
Expand Down

0 comments on commit 55ffda3

Please sign in to comment.