Update to 8.3.0

This commit is contained in:
xaxtix 2021-12-07 16:02:02 +03:00
parent 23b70a3882
commit 64c32ace43
197 changed files with 9478 additions and 2944 deletions

View file

@ -136,6 +136,7 @@ public class SharedConfig {
public static int distanceSystemType;
public static int mediaColumnsCount = 3;
public static int fastScrollHintCount = 3;
public static boolean dontAskManageStorage;
static {
loadConfig();
@ -375,6 +376,7 @@ public class SharedConfig {
dayNightThemeSwitchHintCount = preferences.getInt("dayNightThemeSwitchHintCount", 3);
mediaColumnsCount = preferences.getInt("mediaColumnsCount", 3);
fastScrollHintCount = preferences.getInt("fastScrollHintCount", 3);
dontAskManageStorage = preferences.getBoolean("dontAskManageStorage", false);
preferences = ApplicationLoader.applicationContext.getSharedPreferences("Notifications", Activity.MODE_PRIVATE);
showNotificationsForAllAccounts = preferences.getBoolean("AllAccounts", true);
@ -1161,4 +1163,9 @@ public class SharedConfig {
ApplicationLoader.applicationContext.getSharedPreferences("mainconfig", Activity.MODE_PRIVATE).edit().putInt("fastScrollHintCount", fastScrollHintCount).apply();
}
}
public static void setDontAskManageStorage(boolean b) {
dontAskManageStorage = b;
ApplicationLoader.applicationContext.getSharedPreferences("mainconfig", Activity.MODE_PRIVATE).edit().putBoolean("dontAskManageStorage", dontAskManageStorage).apply();
}
}