Fixing color preference not saved loaded on android 11 and below devices
This commit is contained in:
parent
584f28534a
commit
b53ada7ea2
|
@ -65,7 +65,7 @@ public class GlobalUserPreferences{
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue