Refactoring the enableHideFab option, and increasing the threshold for the fab popping up from 400 to 800

This commit is contained in:
LucasGGamerM
2023-01-26 20:15:50 -03:00
parent 51d4fd63db
commit 45832355a3
3 changed files with 7 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ public class GlobalUserPreferences{
public static boolean relocatePublishButton;
public static boolean reduceMotion;
public static boolean keepOnlyLatestNotification;
public static boolean disableFabAutoHide;
public static boolean enableFabAutoHide;
public static String publishButtonText;
public static ThemePreference theme;
public static ColorPreference color;
@@ -73,7 +73,7 @@ public class GlobalUserPreferences{
enableDeleteNotifications=prefs.getBoolean("enableDeleteNotifications", true);
reduceMotion=prefs.getBoolean("reduceMotion", false);
keepOnlyLatestNotification=prefs.getBoolean("keepOnlyLatestNotification", false);
disableFabAutoHide=prefs.getBoolean("disableFabAutoHide", false);
enableFabAutoHide =prefs.getBoolean("enableFabAutoHide", true);
theme=ThemePreference.values()[prefs.getInt("theme", 0)];
recentLanguages=fromJson(prefs.getString("recentLanguages", "{}"), recentLanguagesType, new HashMap<>());
recentEmojis=fromJson(prefs.getString("recentEmojis", "{}"), recentEmojisType, new HashMap<>());
@@ -110,7 +110,7 @@ public class GlobalUserPreferences{
.putBoolean("enableDeleteNotifications", enableDeleteNotifications)
.putBoolean("reduceMotion", reduceMotion)
.putBoolean("keepOnlyLatestNotification", keepOnlyLatestNotification)
.putBoolean("disableFabAutoHide", disableFabAutoHide)
.putBoolean("enableFabAutoHide", enableFabAutoHide)
.putString("publishButtonText", publishButtonText)
.putInt("theme", theme.ordinal())
.putString("color", color.name())