mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-29 12:39:41 +00:00
Broadcasts, updated gif lib, blur image\video preview
Note: untested, don’t upload to market
This commit is contained in:
parent
e5cb3685a0
commit
91ae97e257
93 changed files with 1479 additions and 820 deletions
|
|
@ -24,6 +24,7 @@ public class UserConfig {
|
|||
public static String pushString = "";
|
||||
public static int lastSendMessageId = -210000;
|
||||
public static int lastLocalId = -210000;
|
||||
public static int lastBroadcastId = -1;
|
||||
public static String contactsHash = "";
|
||||
public static String importHash = "";
|
||||
private final static Integer sync = 1;
|
||||
|
|
@ -56,6 +57,7 @@ public class UserConfig {
|
|||
editor.putString("importHash", importHash);
|
||||
editor.putBoolean("saveIncomingPhotos", saveIncomingPhotos);
|
||||
editor.putInt("contactsVersion", contactsVersion);
|
||||
editor.putInt("lastBroadcastId", lastBroadcastId);
|
||||
editor.putBoolean("registeredForInternalPush", registeredForInternalPush);
|
||||
if (currentUser != null) {
|
||||
if (withFile) {
|
||||
|
|
@ -174,6 +176,7 @@ public class UserConfig {
|
|||
importHash = preferences.getString("importHash", "");
|
||||
saveIncomingPhotos = preferences.getBoolean("saveIncomingPhotos", false);
|
||||
contactsVersion = preferences.getInt("contactsVersion", 0);
|
||||
lastBroadcastId = preferences.getInt("lastBroadcastId", -1);
|
||||
registeredForInternalPush = preferences.getBoolean("registeredForInternalPush", false);
|
||||
String user = preferences.getString("user", null);
|
||||
if (user != null) {
|
||||
|
|
@ -196,6 +199,7 @@ public class UserConfig {
|
|||
lastLocalId = -210000;
|
||||
lastSendMessageId = -210000;
|
||||
contactsVersion = 1;
|
||||
lastBroadcastId = -1;
|
||||
saveIncomingPhotos = false;
|
||||
saveConfig(true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue