mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-03 06:20:11 +00:00
Update to 8.0.0 (2406)
This commit is contained in:
parent
ab221dafad
commit
368822d20f
191 changed files with 12004 additions and 2919 deletions
|
|
@ -38,6 +38,9 @@ public class SharedConfig {
|
|||
|
||||
public static String pushString = "";
|
||||
public static String pushStringStatus = "";
|
||||
public static long pushStringGetTimeStart;
|
||||
public static long pushStringGetTimeEnd;
|
||||
public static boolean pushStatSent;
|
||||
public static byte[] pushAuthKey;
|
||||
public static byte[] pushAuthKeyId;
|
||||
|
||||
|
|
@ -66,6 +69,7 @@ public class SharedConfig {
|
|||
public static int textSelectionHintShows;
|
||||
public static int scheduledOrNoSoundHintShows;
|
||||
public static int lockRecordAudioVideoHint;
|
||||
public static boolean forwardingOptionsHintShown;
|
||||
public static boolean searchMessagesAsListUsed;
|
||||
public static boolean stickersReorderingHintUsed;
|
||||
public static boolean disableVoiceAudioEffects;
|
||||
|
|
@ -189,6 +193,7 @@ public class SharedConfig {
|
|||
editor.putBoolean("useFingerprint", useFingerprint);
|
||||
editor.putBoolean("allowScreenCapture", allowScreenCapture);
|
||||
editor.putString("pushString2", pushString);
|
||||
editor.putBoolean("pushStatSent", pushStatSent);
|
||||
editor.putString("pushAuthKey", pushAuthKey != null ? Base64.encodeToString(pushAuthKey, Base64.DEFAULT) : "");
|
||||
editor.putInt("lastLocalId", lastLocalId);
|
||||
editor.putString("passportConfigJson", passportConfigJson);
|
||||
|
|
@ -197,6 +202,7 @@ public class SharedConfig {
|
|||
editor.putBoolean("sortFilesByName", sortFilesByName);
|
||||
editor.putInt("textSelectionHintShows", textSelectionHintShows);
|
||||
editor.putInt("scheduledOrNoSoundHintShows", scheduledOrNoSoundHintShows);
|
||||
editor.putBoolean("forwardingOptionsHintShown", forwardingOptionsHintShown);
|
||||
editor.putInt("lockRecordAudioVideoHint", lockRecordAudioVideoHint);
|
||||
editor.putString("storageCacheDir", !TextUtils.isEmpty(storageCacheDir) ? storageCacheDir : "");
|
||||
|
||||
|
|
@ -252,6 +258,7 @@ public class SharedConfig {
|
|||
allowScreenCapture = preferences.getBoolean("allowScreenCapture", false);
|
||||
lastLocalId = preferences.getInt("lastLocalId", -210000);
|
||||
pushString = preferences.getString("pushString2", "");
|
||||
pushStatSent = preferences.getBoolean("pushStatSent", false);
|
||||
passportConfigJson = preferences.getString("passportConfigJson", "");
|
||||
passportConfigHash = preferences.getInt("passportConfigHash", 0);
|
||||
storageCacheDir = preferences.getString("storageCacheDir", null);
|
||||
|
|
@ -352,6 +359,7 @@ public class SharedConfig {
|
|||
stickersReorderingHintUsed = preferences.getBoolean("stickersReorderingHintUsed", false);
|
||||
textSelectionHintShows = preferences.getInt("textSelectionHintShows", 0);
|
||||
scheduledOrNoSoundHintShows = preferences.getInt("scheduledOrNoSoundHintShows", 0);
|
||||
forwardingOptionsHintShown = preferences.getBoolean("forwardingOptionsHintShown", false);
|
||||
lockRecordAudioVideoHint = preferences.getInt("lockRecordAudioVideoHint", 0);
|
||||
disableVoiceAudioEffects = preferences.getBoolean("disableVoiceAudioEffects", false);
|
||||
noiseSupression = preferences.getBoolean("noiseSupression", false);
|
||||
|
|
@ -513,6 +521,7 @@ public class SharedConfig {
|
|||
textSelectionHintShows = 0;
|
||||
scheduledOrNoSoundHintShows = 0;
|
||||
lockRecordAudioVideoHint = 0;
|
||||
forwardingOptionsHintShown = false;
|
||||
saveConfig();
|
||||
}
|
||||
|
||||
|
|
@ -561,6 +570,14 @@ public class SharedConfig {
|
|||
editor.commit();
|
||||
}
|
||||
|
||||
public static void forwardingOptionsHintHintShowed() {
|
||||
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
|
||||
SharedPreferences.Editor editor = preferences.edit();
|
||||
forwardingOptionsHintShown = true;
|
||||
editor.putBoolean("forwardingOptionsHintShown", forwardingOptionsHintShown);
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
public static void removeScheduledOrNoSuoundHint() {
|
||||
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
|
||||
SharedPreferences.Editor editor = preferences.edit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue