mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-29 20:49:37 +00:00
update to 1.3.19
Spanish localization by Borja Campina Applied pull request by Yuri Orlov (https://github.com/DrKLO/Telegram/pull/27)
This commit is contained in:
parent
1a4d0786ec
commit
9814a6e927
110 changed files with 6238 additions and 3457 deletions
|
|
@ -27,7 +27,6 @@ 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;
|
||||
|
||||
|
|
@ -55,7 +54,6 @@ 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();
|
||||
|
|
@ -71,7 +69,6 @@ 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");
|
||||
}
|
||||
|
|
@ -105,7 +102,7 @@ public class UserConfig {
|
|||
lastSendMessageId = data.readInt32();
|
||||
lastLocalId = data.readInt32();
|
||||
contactsHash = data.readString();
|
||||
importHash = data.readString();
|
||||
data.readString();
|
||||
saveIncomingPhotos = data.readBool();
|
||||
if (currentUser.status != null) {
|
||||
if (currentUser.status.expires != 0) {
|
||||
|
|
@ -139,7 +136,6 @@ 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) {
|
||||
|
|
@ -164,7 +160,6 @@ 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) {
|
||||
|
|
@ -191,7 +186,6 @@ public class UserConfig {
|
|||
registeredForPush = false;
|
||||
contactsHash = "";
|
||||
lastLocalId = -210000;
|
||||
importHash = "";
|
||||
lastSendMessageId = -210000;
|
||||
saveIncomingPhotos = false;
|
||||
saveConfig(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue