diff --git a/TMessagesProj/src/main/java/org/telegram/ui/SettingsActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/SettingsActivity.java
index 25402cdc0..4a23af71c 100644
--- a/TMessagesProj/src/main/java/org/telegram/ui/SettingsActivity.java
+++ b/TMessagesProj/src/main/java/org/telegram/ui/SettingsActivity.java
@@ -219,29 +219,35 @@ public class SettingsActivity extends BaseFragment implements NotificationCenter
numberRow = rowCount++; // EDIT BY MR -- these are the account settings
settingsSectionRow = rowCount++;
settingsSectionRow2 = rowCount++;
- notificationRow = rowCount++;
privacyRow = rowCount++;
+ notificationRow = rowCount++;
backgroundRow = rowCount++;
- languageRow = rowCount++;
enableAnimationsRow = rowCount++;
+ languageRow = rowCount++;
+
mediaDownloadSection = rowCount++;
mediaDownloadSection2 = rowCount++;
- mobileDownloadRow = rowCount++;
- wifiDownloadRow = rowCount++;
- roamingDownloadRow = rowCount++;
autoplayGifsRow = rowCount++;
+ mobileDownloadRow = -1;//rowCount++;
+ wifiDownloadRow = -1;//rowCount++;
+ roamingDownloadRow = -1;//rowCount++;
saveToGalleryRow = rowCount++;
+ cacheRow = rowCount++;
+
messagesSectionRow = rowCount++;
messagesSectionRow2 = rowCount++;
+ sendByEnterRow = rowCount++; // outgoing message
+ raiseToSpeakRow = rowCount++;
+ textSizeRow = rowCount++; // incoming messages
customTabsRow = rowCount++;
+ stickersRow = -1; // EDIT BY MR --was: rowCount++;
if (Build.VERSION.SDK_INT >= 23) {
directShareRow = rowCount++;
}
- textSizeRow = rowCount++;
- stickersRow = -1; // EDIT BY MR --was: rowCount++;
- cacheRow = rowCount++;
- raiseToSpeakRow = rowCount++;
- sendByEnterRow = rowCount++;
+ else {
+ directShareRow = -1;
+ }
+
supportSectionRow = rowCount++;
supportSectionRow2 = rowCount++;
askQuestionRow = -1; // EDIT BY MR -- rowCount++;
@@ -1318,7 +1324,7 @@ public class SettingsActivity extends BaseFragment implements NotificationCenter
int size = preferences.getInt("fons_size", AndroidUtilities.isTablet() ? 18 : 16);
textCell.setTextAndValue(LocaleController.getString("TextSize", R.string.TextSize), String.format("%d", size), true);
} else if (i == languageRow) {
- textCell.setTextAndValue(LocaleController.getString("Language", R.string.Language), LocaleController.getCurrentLanguageName(), true);
+ textCell.setTextAndValue(LocaleController.getString("Language", R.string.Language), LocaleController.getCurrentLanguageName(), false);
} else if (i == contactsSortRow) {
/* EDIT BY MR
String value;
@@ -1372,11 +1378,11 @@ public class SettingsActivity extends BaseFragment implements NotificationCenter
SharedPreferences preferences = ApplicationLoader.applicationContext.getSharedPreferences("mainconfig", Activity.MODE_PRIVATE);
if (i == enableAnimationsRow) {
- textCell.setTextAndCheck(LocaleController.getString("EnableAnimations", R.string.EnableAnimations), preferences.getBoolean("view_animations", true), false);
+ textCell.setTextAndCheck(LocaleController.getString("EnableAnimations", R.string.EnableAnimations), preferences.getBoolean("view_animations", true), true);
} else if (i == sendByEnterRow) {
- textCell.setTextAndCheck(LocaleController.getString("SendByEnter", R.string.SendByEnter), preferences.getBoolean("send_by_enter", false), false);
+ textCell.setTextAndCheck(LocaleController.getString("SendByEnter", R.string.SendByEnter), preferences.getBoolean("send_by_enter", false), true);
} else if (i == saveToGalleryRow) {
- textCell.setTextAndCheck(LocaleController.getString("SaveToGallerySettings", R.string.SaveToGallerySettings), MediaController.getInstance().canSaveToGallery(), false);
+ textCell.setTextAndCheck(LocaleController.getString("SaveToGallerySettings", R.string.SaveToGallerySettings), MediaController.getInstance().canSaveToGallery(), true);
} else if (i == autoplayGifsRow) {
textCell.setTextAndCheck(LocaleController.getString("AutoplayGifs", R.string.AutoplayGifs), MediaController.getInstance().canAutoplayGifs(), true);
} else if (i == raiseToSpeakRow) {
@@ -1384,7 +1390,7 @@ public class SettingsActivity extends BaseFragment implements NotificationCenter
} else if (i == customTabsRow) {
textCell.setTextAndValueAndCheck(LocaleController.getString("ChromeCustomTabs", R.string.ChromeCustomTabs), LocaleController.getString("ChromeCustomTabsInfo", R.string.ChromeCustomTabsInfo), MediaController.getInstance().canCustomTabs(), false, true);
} else if (i == directShareRow) {
- textCell.setTextAndValueAndCheck(LocaleController.getString("DirectShare", R.string.DirectShare), LocaleController.getString("DirectShareInfo", R.string.DirectShareInfo), MediaController.getInstance().canDirectShare(), false, true);
+ textCell.setTextAndValueAndCheck(LocaleController.getString("DirectShare", R.string.DirectShare), LocaleController.getString("DirectShareInfo", R.string.DirectShareInfo), MediaController.getInstance().canDirectShare(), false, false);
}
} else if (type == 4) {
if (view == null) {
@@ -1397,7 +1403,7 @@ public class SettingsActivity extends BaseFragment implements NotificationCenter
} else if (i == messagesSectionRow2) {
((HeaderCell) view).setText(LocaleController.getString("MessagesSettings", R.string.MessagesSettings));
} else if (i == mediaDownloadSection2) {
- ((HeaderCell) view).setText(LocaleController.getString("AutomaticMediaDownload", R.string.AutomaticMediaDownload));
+ ((HeaderCell) view).setText(LocaleController.getString("Media", R.string.Media));
} else if (i == numberSectionRow) {
((HeaderCell) view).setText(LocaleController.getString("MyAccount", R.string.MyAccount)); // EDIT BY MR
}
diff --git a/TMessagesProj/src/main/res/values-de/strings.xml b/TMessagesProj/src/main/res/values-de/strings.xml
index 10d48bf76..e843c1736 100644
--- a/TMessagesProj/src/main/res/values-de/strings.xml
+++ b/TMessagesProj/src/main/res/values-de/strings.xml
@@ -979,4 +979,5 @@
Unbekannte Absender
Unbekannte Benutzer
Nachrichten von unbekannten Benutzern anzeigen
+ Medien
diff --git a/TMessagesProj/src/main/res/values-es/strings.xml b/TMessagesProj/src/main/res/values-es/strings.xml
index afe2349b9..817905b67 100644
--- a/TMessagesProj/src/main/res/values-es/strings.xml
+++ b/TMessagesProj/src/main/res/values-es/strings.xml
@@ -946,4 +946,5 @@
h:mm a
%1$s a las %2$s
Nuevo chat
+ Multimedia
diff --git a/TMessagesProj/src/main/res/values-it/strings.xml b/TMessagesProj/src/main/res/values-it/strings.xml
index b260dbe9c..a7acfe762 100644
--- a/TMessagesProj/src/main/res/values-it/strings.xml
+++ b/TMessagesProj/src/main/res/values-it/strings.xml
@@ -946,4 +946,5 @@
h:mm a
%1$s alle %2$s
Nuova chat
+ Media
diff --git a/TMessagesProj/src/main/res/values-nl/strings.xml b/TMessagesProj/src/main/res/values-nl/strings.xml
index 965b7151f..eb620197a 100644
--- a/TMessagesProj/src/main/res/values-nl/strings.xml
+++ b/TMessagesProj/src/main/res/values-nl/strings.xml
@@ -946,4 +946,5 @@
h:mm a
%1$s om %2$s
Nieuwe chat
+ Media
diff --git a/TMessagesProj/src/main/res/values-pt/strings.xml b/TMessagesProj/src/main/res/values-pt/strings.xml
index f1d6b22ce..aa61098e7 100644
--- a/TMessagesProj/src/main/res/values-pt/strings.xml
+++ b/TMessagesProj/src/main/res/values-pt/strings.xml
@@ -946,4 +946,5 @@
h:mm a
%1$s às %2$s
Novo Chat
+ Mídias
diff --git a/TMessagesProj/src/main/res/values/strings.xml b/TMessagesProj/src/main/res/values/strings.xml
index d00c1d80c..8e052d633 100644
--- a/TMessagesProj/src/main/res/values/strings.xml
+++ b/TMessagesProj/src/main/res/values/strings.xml
@@ -979,4 +979,5 @@
Unknown senders
Unknown users
Show messages from unknown useres
+ Media