Deleting the entries for the default language, as I will instead get them from the server

This commit is contained in:
LucasGGamerM 2022-12-15 15:05:22 -03:00
parent d10145a6ba
commit 10ad35a285
1 changed files with 0 additions and 3 deletions

View File

@ -29,7 +29,6 @@ public class GlobalUserPreferences{
public static ColorPreference color;
private final static Type recentLanguagesType = new TypeToken<Map<String, List<String>>>() {}.getType();
private final static Type defaultLanguagesType = new TypeToken<Map<String, String>>() {}.getType();
public static Map<String, List<String>> recentLanguages;
public static Map<String, String> defaultLanguages;
@ -57,7 +56,6 @@ public class GlobalUserPreferences{
voteButtonForSingleChoice=prefs.getBoolean("voteButtonForSingleChoice", true);
theme=ThemePreference.values()[prefs.getInt("theme", 0)];
recentLanguages=fromJson(prefs.getString("recentLanguages", "{}"), recentLanguagesType, new HashMap<>());
defaultLanguages=fromJson(prefs.getString("defaultLanguages", "{}"), defaultLanguagesType, new HashMap<>());
color=ColorPreference.values()[prefs.getInt("color", 1)];
}
@ -75,7 +73,6 @@ public class GlobalUserPreferences{
.putBoolean("disableMarquee", disableMarquee)
.putInt("theme", theme.ordinal())
.putString("recentLanguages", gson.toJson(recentLanguages))
.putString("defaultLanguages", gson.toJson(defaultLanguages))
.putInt("color", color.ordinal())
.apply();
}