Skip to content

Commit

Permalink
Fixing color preference not saved loaded on android 11 and below devices
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Dec 23, 2022
1 parent 584f285 commit b53ada7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void load(){
if(android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.S){
color=ColorPreference.valueOf(prefs.getString("color", ColorPreference.MATERIAL3.name()));
}else{
color=ColorPreference.PURPLE;
color=ColorPreference.valueOf(prefs.getString("color", ColorPreference.PURPLE.name()));
}
} catch (IllegalArgumentException|ClassCastException ignored) {
// invalid color name or color was previously saved as integer
Expand Down

0 comments on commit b53ada7

Please sign in to comment.