Setting purple as default and making it work idk

This commit is contained in:
LucasGGamerM
2022-12-22 11:49:07 -03:00
parent f0bd9233b7
commit 6774a642d9
3 changed files with 37 additions and 24 deletions

View File

@@ -59,10 +59,10 @@ public class GlobalUserPreferences{
recentLanguages=fromJson(prefs.getString("recentLanguages", "{}"), recentLanguagesType, new HashMap<>());
try {
color=ColorPreference.valueOf(prefs.getString("color", ColorPreference.PINK.name()));
color=ColorPreference.valueOf(prefs.getString("color", ColorPreference.MATERIAL3.name()));
} catch (IllegalArgumentException|ClassCastException ignored) {
// invalid color name or color was previously saved as integer
color=ColorPreference.PINK;
color=ColorPreference.PURPLE;
}
}