mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-30 21:19:33 +00:00
Update to 5.15.0 (1864)
This commit is contained in:
parent
7d6fa267c1
commit
2eafc07314
145 changed files with 9119 additions and 2468 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue