mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-30 21:19:33 +00:00
Update to 8.2.1 (2462)
This commit is contained in:
parent
09f95ec069
commit
1d379b9a7b
141 changed files with 11475 additions and 5394 deletions
|
|
@ -23,6 +23,7 @@ import android.util.SparseArray;
|
|||
import org.json.JSONObject;
|
||||
import org.telegram.tgnet.ConnectionsManager;
|
||||
import org.telegram.tgnet.SerializedData;
|
||||
import org.telegram.ui.Components.SharedMediaLayout;
|
||||
import org.telegram.ui.Components.SwipeGestureSettingsView;
|
||||
import org.telegram.tgnet.TLRPC;
|
||||
|
||||
|
|
@ -133,6 +134,8 @@ public class SharedConfig {
|
|||
private static int chatSwipeAction;
|
||||
|
||||
public static int distanceSystemType;
|
||||
public static int mediaColumnsCount = 3;
|
||||
public static int fastScrollHintCount = 3;
|
||||
|
||||
static {
|
||||
loadConfig();
|
||||
|
|
@ -370,6 +373,9 @@ public class SharedConfig {
|
|||
messageSeenHintCount = preferences.getInt("messageSeenCount", 3);
|
||||
emojiInteractionsHintCount = preferences.getInt("emojiInteractionsHintCount", 3);
|
||||
dayNightThemeSwitchHintCount = preferences.getInt("dayNightThemeSwitchHintCount", 3);
|
||||
mediaColumnsCount = preferences.getInt("mediaColumnsCount", 3);
|
||||
fastScrollHintCount = preferences.getInt("fastScrollHintCount", 3);
|
||||
|
||||
preferences = ApplicationLoader.applicationContext.getSharedPreferences("Notifications", Activity.MODE_PRIVATE);
|
||||
showNotificationsForAllAccounts = preferences.getBoolean("AllAccounts", true);
|
||||
|
||||
|
|
@ -1141,4 +1147,18 @@ public class SharedConfig {
|
|||
|
||||
return devicePerformanceClass;
|
||||
}
|
||||
|
||||
public static void setMediaColumnsCount(int count) {
|
||||
if (mediaColumnsCount != count) {
|
||||
mediaColumnsCount = count;
|
||||
ApplicationLoader.applicationContext.getSharedPreferences("mainconfig", Activity.MODE_PRIVATE).edit().putInt("mediaColumnsCount", mediaColumnsCount).apply();
|
||||
}
|
||||
}
|
||||
|
||||
public static void setFastScrollHintCount(int count) {
|
||||
if (fastScrollHintCount != count) {
|
||||
fastScrollHintCount = count;
|
||||
ApplicationLoader.applicationContext.getSharedPreferences("mainconfig", Activity.MODE_PRIVATE).edit().putInt("fastScrollHintCount", fastScrollHintCount).apply();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue