mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-30 21:19:33 +00:00
Update to 5.6.1
This commit is contained in:
parent
e397bd9afd
commit
2cf2a45aca
3181 changed files with 41027 additions and 27918 deletions
|
|
@ -31,6 +31,8 @@ public class SharedConfig {
|
|||
public static byte[] pushAuthKey;
|
||||
public static byte[] pushAuthKeyId;
|
||||
|
||||
public static long directShareHash;
|
||||
|
||||
public static boolean saveIncomingPhotos;
|
||||
public static String passcodeHash = "";
|
||||
public static long passcodeRetryInMs;
|
||||
|
|
@ -72,15 +74,21 @@ public class SharedConfig {
|
|||
public static boolean streamAllVideo = false;
|
||||
public static boolean streamMkv = false;
|
||||
public static boolean saveStreamMedia = true;
|
||||
public static boolean showAnimatedStickers = BuildVars.DEBUG_VERSION;
|
||||
public static boolean sortContactsByName;
|
||||
public static boolean shuffleMusic;
|
||||
public static boolean playOrderReversed;
|
||||
public static boolean hasCameraCache;
|
||||
public static boolean showNotificationsForAllAccounts = true;
|
||||
public static int repeatMode;
|
||||
public static boolean allowBigEmoji;
|
||||
public static boolean useSystemEmoji;
|
||||
public static int fontSize = AndroidUtilities.dp(16);
|
||||
|
||||
public static boolean drawDialogIcons;
|
||||
public static boolean useThreeLinesLayout;
|
||||
public static boolean archiveHidden;
|
||||
|
||||
static {
|
||||
loadConfig();
|
||||
}
|
||||
|
|
@ -220,7 +228,7 @@ public class SharedConfig {
|
|||
groupPhotosEnabled = preferences.getBoolean("groupPhotosEnabled", true);
|
||||
repeatMode = preferences.getInt("repeatMode", 0);
|
||||
fontSize = preferences.getInt("fons_size", AndroidUtilities.isTablet() ? 18 : 16);
|
||||
allowBigEmoji = preferences.getBoolean("allowBigEmoji", false);
|
||||
allowBigEmoji = preferences.getBoolean("allowBigEmoji", true);
|
||||
useSystemEmoji = preferences.getBoolean("useSystemEmoji", false);
|
||||
streamMedia = preferences.getBoolean("streamMedia", true);
|
||||
saveStreamMedia = preferences.getBoolean("saveStreamMedia", true);
|
||||
|
|
@ -229,6 +237,12 @@ public class SharedConfig {
|
|||
suggestStickers = preferences.getInt("suggestStickers", 0);
|
||||
sortContactsByName = preferences.getBoolean("sortContactsByName", false);
|
||||
noSoundHintShowed = preferences.getBoolean("noSoundHintShowed", false);
|
||||
directShareHash = preferences.getLong("directShareHash", 0);
|
||||
useThreeLinesLayout = preferences.getBoolean("useThreeLinesLayout", false);
|
||||
archiveHidden = preferences.getBoolean("archiveHidden", false);
|
||||
|
||||
preferences = ApplicationLoader.applicationContext.getSharedPreferences("Notifications", Activity.MODE_PRIVATE);
|
||||
showNotificationsForAllAccounts = preferences.getBoolean("AllAccounts", true);
|
||||
|
||||
configLoaded = true;
|
||||
}
|
||||
|
|
@ -394,6 +408,23 @@ public class SharedConfig {
|
|||
editor.commit();
|
||||
}
|
||||
|
||||
public static void setUseThreeLinesLayout(boolean value) {
|
||||
useThreeLinesLayout = value;
|
||||
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
|
||||
SharedPreferences.Editor editor = preferences.edit();
|
||||
editor.putBoolean("useThreeLinesLayout", useThreeLinesLayout);
|
||||
editor.commit();
|
||||
NotificationCenter.getGlobalInstance().postNotificationName(NotificationCenter.dialogsNeedReload, true);
|
||||
}
|
||||
|
||||
public static void toggleArchiveHidden() {
|
||||
archiveHidden = !archiveHidden;
|
||||
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
|
||||
SharedPreferences.Editor editor = preferences.edit();
|
||||
editor.putBoolean("archiveHidden", archiveHidden);
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
public static void toggleAutoplayVideo() {
|
||||
autoplayVideo = !autoplayVideo;
|
||||
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue