Update to 5.15.0 (1864)

This commit is contained in:
DrKLO 2020-02-13 21:26:53 +03:00
parent 7d6fa267c1
commit 2eafc07314
145 changed files with 9119 additions and 2468 deletions

View file

@ -84,6 +84,8 @@ public class SharedConfig {
public static boolean streamAllVideo = false;
public static boolean streamMkv = false;
public static boolean saveStreamMedia = true;
public static boolean smoothKeyboard = false;
public static boolean pauseMusicOnRecord = true;
public static boolean sortContactsByName;
public static boolean sortFilesByName;
public static boolean shuffleMusic;
@ -249,6 +251,8 @@ public class SharedConfig {
useSystemEmoji = preferences.getBoolean("useSystemEmoji", false);
streamMedia = preferences.getBoolean("streamMedia", true);
saveStreamMedia = preferences.getBoolean("saveStreamMedia", true);
smoothKeyboard = preferences.getBoolean("smoothKeyboard", false);
pauseMusicOnRecord = preferences.getBoolean("pauseMusicOnRecord", true);
streamAllVideo = preferences.getBoolean("streamAllVideo", BuildVars.DEBUG_VERSION);
streamMkv = preferences.getBoolean("streamMkv", false);
suggestStickers = preferences.getInt("suggestStickers", 0);
@ -671,6 +675,22 @@ public class SharedConfig {
editor.commit();
}
public static void toggleSmoothKeyboard() {
smoothKeyboard = !smoothKeyboard;
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
SharedPreferences.Editor editor = preferences.edit();
editor.putBoolean("smoothKeyboard", smoothKeyboard);
editor.commit();
}
public static void togglePauseMusicOnRecord() {
pauseMusicOnRecord = !pauseMusicOnRecord;
SharedPreferences preferences = MessagesController.getGlobalMainSettings();
SharedPreferences.Editor editor = preferences.edit();
editor.putBoolean("pauseMusicOnRecord", pauseMusicOnRecord);
editor.commit();
}
public static void toggleInappCamera() {
inappCamera = !inappCamera;
SharedPreferences preferences = MessagesController.getGlobalMainSettings();