mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-29 20:49:37 +00:00
update to 1.3.21
Ability to delete add rename contacts, proper handling of new contacts in phone book New photo crop Ability to disable automatic photo download Ability to disable notifications about new registered contacts Updated Spanish localization Bug fixes
This commit is contained in:
parent
9814a6e927
commit
507d05aaf1
147 changed files with 4500 additions and 619 deletions
|
|
@ -27,6 +27,7 @@ public class UserConfig {
|
|||
public static int lastSendMessageId = -210000;
|
||||
public static int lastLocalId = -210000;
|
||||
public static String contactsHash = "";
|
||||
public static String importHash = "";
|
||||
private final static Integer sync = 1;
|
||||
public static boolean saveIncomingPhotos = false;
|
||||
|
||||
|
|
@ -54,6 +55,7 @@ public class UserConfig {
|
|||
editor.putInt("lastSendMessageId", lastSendMessageId);
|
||||
editor.putInt("lastLocalId", lastLocalId);
|
||||
editor.putString("contactsHash", contactsHash);
|
||||
editor.putString("importHash", importHash);
|
||||
editor.putBoolean("saveIncomingPhotos", saveIncomingPhotos);
|
||||
if (withFile) {
|
||||
SerializedData data = new SerializedData();
|
||||
|
|
@ -69,6 +71,7 @@ public class UserConfig {
|
|||
editor.putInt("lastSendMessageId", lastSendMessageId);
|
||||
editor.putInt("lastLocalId", lastLocalId);
|
||||
editor.putString("contactsHash", contactsHash);
|
||||
editor.putString("importHash", importHash);
|
||||
editor.putBoolean("saveIncomingPhotos", saveIncomingPhotos);
|
||||
editor.remove("user");
|
||||
}
|
||||
|
|
@ -102,7 +105,7 @@ public class UserConfig {
|
|||
lastSendMessageId = data.readInt32();
|
||||
lastLocalId = data.readInt32();
|
||||
contactsHash = data.readString();
|
||||
data.readString();
|
||||
importHash = data.readString();
|
||||
saveIncomingPhotos = data.readBool();
|
||||
if (currentUser.status != null) {
|
||||
if (currentUser.status.expires != 0) {
|
||||
|
|
@ -136,6 +139,7 @@ public class UserConfig {
|
|||
lastSendMessageId = preferences.getInt("lastSendMessageId", -210000);
|
||||
lastLocalId = preferences.getInt("lastLocalId", -210000);
|
||||
contactsHash = preferences.getString("contactsHash", "");
|
||||
importHash = preferences.getString("importHash", "");
|
||||
saveIncomingPhotos = preferences.getBoolean("saveIncomingPhotos", false);
|
||||
}
|
||||
if (lastLocalId > -210000) {
|
||||
|
|
@ -160,6 +164,7 @@ public class UserConfig {
|
|||
lastSendMessageId = preferences.getInt("lastSendMessageId", -210000);
|
||||
lastLocalId = preferences.getInt("lastLocalId", -210000);
|
||||
contactsHash = preferences.getString("contactsHash", "");
|
||||
importHash = preferences.getString("importHash", "");
|
||||
saveIncomingPhotos = preferences.getBoolean("saveIncomingPhotos", false);
|
||||
String user = preferences.getString("user", null);
|
||||
if (user != null) {
|
||||
|
|
@ -185,6 +190,7 @@ public class UserConfig {
|
|||
currentUser = null;
|
||||
registeredForPush = false;
|
||||
contactsHash = "";
|
||||
importHash = "";
|
||||
lastLocalId = -210000;
|
||||
lastSendMessageId = -210000;
|
||||
saveIncomingPhotos = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue