feat: add toggle for defaulting to unlisted replies

This commit is contained in:
LucasGGamerM
2023-03-07 14:29:48 -03:00
parent 4b35ac6ad8
commit 52392c9ed9
3 changed files with 11 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ public class GlobalUserPreferences{
public static boolean spectatorMode;
public static boolean autoHideFab;
public static boolean unreadNotifications;
public static boolean defaultToUnlistedReplies;
public static String publishButtonText;
public static ThemePreference theme;
public static ColorPreference color;
@@ -103,6 +104,7 @@ public class GlobalUserPreferences{
spectatorMode=prefs.getBoolean("spectatorMode", false);
autoHideFab=prefs.getBoolean("autoHideFab", true);
unreadNotifications=prefs.getBoolean("unreadNotifications", false);
defaultToUnlistedReplies=prefs.getBoolean("defaultToUnlistedReplies", false);
publishButtonText=prefs.getString("publishButtonText", "");
theme=ThemePreference.values()[prefs.getInt("theme", 0)];
recentLanguages=fromJson(prefs.getString("recentLanguages", "{}"), recentLanguagesType, new HashMap<>());
@@ -155,6 +157,7 @@ public class GlobalUserPreferences{
.putBoolean("unreadNotifications", unreadNotifications)
.putString("publishButtonText", publishButtonText)
.putBoolean("bottomEncoding", bottomEncoding)
.putBoolean("defaultToUnlistedReplies", defaultToUnlistedReplies)
.putInt("theme", theme.ordinal())
.putString("color", color.name())
.putString("recentLanguages", gson.toJson(recentLanguages))