Update to 7.6.1 (2274)

This commit is contained in:
DrKLO 2021-04-09 16:17:32 +03:00
parent ca13bc972d
commit 7ba9838a2d
86 changed files with 2799 additions and 944 deletions

View file

@ -68,6 +68,7 @@ public class SharedConfig {
public static boolean searchMessagesAsListUsed;
public static boolean stickersReorderingHintUsed;
public static boolean disableVoiceAudioEffects;
public static boolean useMediaStream;
private static int lastLocalId = -210000;
public static String storageCacheDir;
@ -294,6 +295,7 @@ public class SharedConfig {
lockRecordAudioVideoHint = preferences.getInt("lockRecordAudioVideoHint", 0);
disableVoiceAudioEffects = preferences.getBoolean("disableVoiceAudioEffects", false);
chatSwipeAction = preferences.getInt("ChatSwipeAction", -1);
useMediaStream = preferences.getBoolean("useMediaStream", false);
preferences = ApplicationLoader.applicationContext.getSharedPreferences("Notifications", Activity.MODE_PRIVATE);
showNotificationsForAllAccounts = preferences.getBoolean("AllAccounts", true);
@ -557,6 +559,14 @@ public class SharedConfig {
editor.commit();
}
public static void toggleUseMediaStream() {
useMediaStream = !useMediaStream;
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
SharedPreferences.Editor editor = preferences.edit();
editor.putBoolean("useMediaStream", useMediaStream);
editor.commit();
}
public static void toggleLoopStickers() {
loopStickers = !loopStickers;
SharedPreferences preferences = MessagesController.getGlobalMainSettings();