mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-01 05:29:34 +00:00
Update to 6.0.0 (1908)
This commit is contained in:
parent
df90eface5
commit
80c4acfa3b
1160 changed files with 237084 additions and 5423 deletions
|
|
@ -59,7 +59,9 @@ public class SharedConfig {
|
|||
public static int searchMessagesAsListHintShows;
|
||||
public static int textSelectionHintShows;
|
||||
public static int scheduledOrNoSoundHintShows;
|
||||
public static int lockRecordAudioVideoHint;
|
||||
public static boolean searchMessagesAsListUsed;
|
||||
public static boolean stickersReorderingHintUsed;
|
||||
private static int lastLocalId = -210000;
|
||||
|
||||
private static String passportConfigJson = "";
|
||||
|
|
@ -176,6 +178,7 @@ public class SharedConfig {
|
|||
editor.putBoolean("sortFilesByName", sortFilesByName);
|
||||
editor.putInt("textSelectionHintShows", textSelectionHintShows);
|
||||
editor.putInt("scheduledOrNoSoundHintShows", scheduledOrNoSoundHintShows);
|
||||
editor.putInt("lockRecordAudioVideoHint", lockRecordAudioVideoHint);
|
||||
editor.commit();
|
||||
} catch (Exception e) {
|
||||
FileLog.e(e);
|
||||
|
|
@ -269,9 +272,10 @@ public class SharedConfig {
|
|||
lastKeepMediaCheckTime = preferences.getInt("lastKeepMediaCheckTime", 0);
|
||||
searchMessagesAsListHintShows = preferences.getInt("searchMessagesAsListHintShows", 0);
|
||||
searchMessagesAsListUsed = preferences.getBoolean("searchMessagesAsListUsed", false);
|
||||
stickersReorderingHintUsed = preferences.getBoolean("stickersReorderingHintUsed", false);
|
||||
textSelectionHintShows = preferences.getInt("textSelectionHintShows", 0);
|
||||
scheduledOrNoSoundHintShows = preferences.getInt("scheduledOrNoSoundHintShows", 0);
|
||||
|
||||
lockRecordAudioVideoHint = preferences.getInt("lockRecordAudioVideoHint", 0);
|
||||
preferences = ApplicationLoader.applicationContext.getSharedPreferences("Notifications", Activity.MODE_PRIVATE);
|
||||
showNotificationsForAllAccounts = preferences.getBoolean("AllAccounts", true);
|
||||
|
||||
|
|
@ -388,6 +392,7 @@ public class SharedConfig {
|
|||
lastUpdateVersion = BuildVars.BUILD_VERSION_STRING;
|
||||
textSelectionHintShows = 0;
|
||||
scheduledOrNoSoundHintShows = 0;
|
||||
lockRecordAudioVideoHint = 0;
|
||||
saveConfig();
|
||||
}
|
||||
|
||||
|
|
@ -407,6 +412,14 @@ public class SharedConfig {
|
|||
editor.commit();
|
||||
}
|
||||
|
||||
public static void setStickersReorderingHintUsed(boolean stickersReorderingHintUsed) {
|
||||
SharedConfig.stickersReorderingHintUsed = stickersReorderingHintUsed;
|
||||
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
|
||||
SharedPreferences.Editor editor = preferences.edit();
|
||||
editor.putBoolean("stickersReorderingHintUsed", stickersReorderingHintUsed);
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
public static void increaseTextSelectionHintShowed() {
|
||||
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
|
||||
SharedPreferences.Editor editor = preferences.edit();
|
||||
|
|
@ -435,6 +448,20 @@ public class SharedConfig {
|
|||
editor.commit();
|
||||
}
|
||||
|
||||
public static void increaseLockRecordAudioVideoHintShowed() {
|
||||
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
|
||||
SharedPreferences.Editor editor = preferences.edit();
|
||||
editor.putInt("lockRecordAudioVideoHint", ++lockRecordAudioVideoHint);
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
public static void removeLockRecordAudioVideoHint() {
|
||||
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
|
||||
SharedPreferences.Editor editor = preferences.edit();
|
||||
editor.putInt("lockRecordAudioVideoHint", 3);
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
public static void increaseSearchAsListHintShows() {
|
||||
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
|
||||
SharedPreferences.Editor editor = preferences.edit();
|
||||
|
|
@ -827,10 +854,10 @@ public class SharedConfig {
|
|||
}
|
||||
} else {
|
||||
if (imagePath.isDirectory()) {
|
||||
new File(imagePath, ".nomedia").createNewFile();
|
||||
AndroidUtilities.createEmptyFile(new File(imagePath, ".nomedia"));
|
||||
}
|
||||
if (videoPath.isDirectory()) {
|
||||
new File(videoPath, ".nomedia").createNewFile();
|
||||
AndroidUtilities.createEmptyFile(new File(videoPath, ".nomedia"));
|
||||
}
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue