mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-30 21:19:33 +00:00
Update to 8.0.1 (2428)
This commit is contained in:
parent
368822d20f
commit
42feed0f42
351 changed files with 22083 additions and 13428 deletions
|
|
@ -23,8 +23,8 @@ import android.util.SparseArray;
|
|||
import org.json.JSONObject;
|
||||
import org.telegram.tgnet.ConnectionsManager;
|
||||
import org.telegram.tgnet.SerializedData;
|
||||
import org.telegram.ui.Components.SwipeGestureSettingsView;
|
||||
import org.telegram.tgnet.TLRPC;
|
||||
import org.telegram.ui.SwipeGestureSettingsView;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.RandomAccessFile;
|
||||
|
|
@ -116,6 +116,9 @@ public class SharedConfig {
|
|||
public static int fontSize = 16;
|
||||
public static int bubbleRadius = 10;
|
||||
public static int ivFontSize = 16;
|
||||
public static int messageSeenHintCount;
|
||||
public static int emojiInteractionsHintCount;
|
||||
public static int dayNightThemeSwitchHintCount;
|
||||
|
||||
public static TLRPC.TL_help_appUpdate pendingAppUpdate;
|
||||
public static int pendingAppUpdateBuildVersion;
|
||||
|
|
@ -364,6 +367,9 @@ public class SharedConfig {
|
|||
disableVoiceAudioEffects = preferences.getBoolean("disableVoiceAudioEffects", false);
|
||||
noiseSupression = preferences.getBoolean("noiseSupression", false);
|
||||
chatSwipeAction = preferences.getInt("ChatSwipeAction", -1);
|
||||
messageSeenHintCount = preferences.getInt("messageSeenCount", 3);
|
||||
emojiInteractionsHintCount = preferences.getInt("emojiInteractionsHintCount", 3);
|
||||
dayNightThemeSwitchHintCount = preferences.getInt("dayNightThemeSwitchHintCount", 3);
|
||||
preferences = ApplicationLoader.applicationContext.getSharedPreferences("Notifications", Activity.MODE_PRIVATE);
|
||||
showNotificationsForAllAccounts = preferences.getBoolean("AllAccounts", true);
|
||||
|
||||
|
|
@ -522,6 +528,9 @@ public class SharedConfig {
|
|||
scheduledOrNoSoundHintShows = 0;
|
||||
lockRecordAudioVideoHint = 0;
|
||||
forwardingOptionsHintShown = false;
|
||||
messageSeenHintCount = 3;
|
||||
emojiInteractionsHintCount = 3;
|
||||
dayNightThemeSwitchHintCount = 3;
|
||||
saveConfig();
|
||||
}
|
||||
|
||||
|
|
@ -1033,8 +1042,6 @@ public class SharedConfig {
|
|||
public static void checkSaveToGalleryFiles() {
|
||||
Utilities.globalQueue.postRunnable(() -> {
|
||||
try {
|
||||
|
||||
|
||||
File telegramPath = new File(Environment.getExternalStorageDirectory(), "Telegram");
|
||||
File imagePath = new File(telegramPath, "Telegram Images");
|
||||
imagePath.mkdir();
|
||||
|
|
@ -1081,6 +1088,25 @@ public class SharedConfig {
|
|||
preferences.edit().putInt("ChatSwipeAction", chatSwipeAction).apply();
|
||||
}
|
||||
|
||||
public static void updateMessageSeenHintCount(int count) {
|
||||
messageSeenHintCount = count;
|
||||
SharedPreferences preferences = ApplicationLoader.applicationContext.getSharedPreferences("mainconfig", Activity.MODE_PRIVATE);
|
||||
preferences.edit().putInt("messageSeenCount", messageSeenHintCount).apply();
|
||||
}
|
||||
|
||||
public static void updateEmojiInteractionsHintCount(int count) {
|
||||
emojiInteractionsHintCount = count;
|
||||
SharedPreferences preferences = ApplicationLoader.applicationContext.getSharedPreferences("mainconfig", Activity.MODE_PRIVATE);
|
||||
preferences.edit().putInt("emojiInteractionsHintCount", emojiInteractionsHintCount).apply();
|
||||
}
|
||||
|
||||
|
||||
public static void updateDayNightThemeSwitchHintCount(int count) {
|
||||
dayNightThemeSwitchHintCount = count;
|
||||
SharedPreferences preferences = ApplicationLoader.applicationContext.getSharedPreferences("mainconfig", Activity.MODE_PRIVATE);
|
||||
preferences.edit().putInt("dayNightThemeSwitchHintCount", dayNightThemeSwitchHintCount).apply();
|
||||
}
|
||||
|
||||
public final static int PERFORMANCE_CLASS_LOW = 0;
|
||||
public final static int PERFORMANCE_CLASS_AVERAGE = 1;
|
||||
public final static int PERFORMANCE_CLASS_HIGH = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue