mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
move 'advanced/outgoing image quality' to 'chats and media/outgoing media quality'
This commit is contained in:
@@ -181,8 +181,8 @@
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_compression_entries">
|
||||
<item>Balanced</item>
|
||||
<item>Worse quality, small size</item>
|
||||
<item>@string/pref_outgoing_balanced</item>
|
||||
<item>@string/pref_outgoing_worse</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_compression_values">
|
||||
|
||||
@@ -345,6 +345,9 @@
|
||||
<string name="pref_default_status_text">Sent with my Delta Chat Messenger: https://delta.chat</string>
|
||||
<string name="pref_enter_sends">Enter key sends</string>
|
||||
<string name="pref_enter_sends_explain">Pressing the Enter key will send text messages</string>
|
||||
<string name="pref_outgoing_media_quality">Outgoing media quality</string>
|
||||
<string name="pref_outgoing_balanced">Balanced</string>
|
||||
<string name="pref_outgoing_worse">Worse quality, small size</string>
|
||||
<string name="pref_vibrate">Vibrate</string>
|
||||
<string name="pref_chat_settings">Chat settings</string>
|
||||
<string name="pref_change_secret">Change secret</string>
|
||||
|
||||
@@ -44,14 +44,6 @@
|
||||
|
||||
<PreferenceCategory android:title="Experimental features">
|
||||
|
||||
<org.thoughtcrime.securesms.preferences.widgets.ListPreferenceWithSummary
|
||||
android:key="pref_compression"
|
||||
android:title="Outgoing image quality"
|
||||
android:dependency="pref_compression"
|
||||
android:entries="@array/pref_compression_entries"
|
||||
android:entryValues="@array/pref_compression_values"
|
||||
android:defaultValue="0" />
|
||||
|
||||
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
||||
android:defaultValue="false"
|
||||
android:key="pref_location_streaming_enabled"
|
||||
|
||||
@@ -22,6 +22,15 @@
|
||||
android:key="pref_enter_sends"
|
||||
android:summary="@string/pref_enter_sends_explain"
|
||||
android:title="@string/pref_enter_sends"/>
|
||||
|
||||
<org.thoughtcrime.securesms.preferences.widgets.ListPreferenceWithSummary
|
||||
android:key="pref_compression"
|
||||
android:title="@string/pref_outgoing_media_quality"
|
||||
android:dependency="pref_compression"
|
||||
android:entries="@array/pref_compression_entries"
|
||||
android:entryValues="@array/pref_compression_values"
|
||||
android:defaultValue="0" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="@string/pref_email_interaction_title">
|
||||
|
||||
@@ -83,9 +83,6 @@ public class AdvancedPreferenceFragment extends ListSummaryPreferenceFragment
|
||||
return true;
|
||||
});
|
||||
|
||||
this.findPreference("pref_compression")
|
||||
.setOnPreferenceChangeListener(new ListSummaryListener());
|
||||
|
||||
Preference backup = this.findPreference("pref_backup");
|
||||
backup.setOnPreferenceClickListener(new BackupListener());
|
||||
|
||||
@@ -137,8 +134,6 @@ public class AdvancedPreferenceFragment extends ListSummaryPreferenceFragment
|
||||
sentboxWatchCheckbox.setChecked(0!=dcContext.getConfigInt("sentbox_watch"));
|
||||
mvboxWatchCheckbox.setChecked(0!=dcContext.getConfigInt("mvbox_watch"));
|
||||
mvboxMoveCheckbox.setChecked(0!=dcContext.getConfigInt("mvbox_move"));
|
||||
|
||||
initializeListSummary((ListPreferenceWithSummary) findPreference("pref_compression"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -40,6 +40,9 @@ public class ChatsPreferenceFragment extends ListSummaryPreferenceFragment {
|
||||
findPreference(Prefs.MESSAGE_BODY_TEXT_SIZE_PREF)
|
||||
.setOnPreferenceChangeListener(new ListSummaryListener());
|
||||
|
||||
findPreference("pref_compression")
|
||||
.setOnPreferenceChangeListener(new ListSummaryListener());
|
||||
|
||||
showEmails = (ListPreferenceWithSummary) this.findPreference("pref_show_emails");
|
||||
showEmails.setOnPreferenceChangeListener((preference, newValue) -> {
|
||||
updateListSummary(preference, newValue);
|
||||
@@ -68,6 +71,8 @@ public class ChatsPreferenceFragment extends ListSummaryPreferenceFragment {
|
||||
super.onResume();
|
||||
((ApplicationPreferencesActivity)getActivity()).getSupportActionBar().setTitle(R.string.pref_chats_and_media);
|
||||
|
||||
initializeListSummary((ListPreferenceWithSummary) findPreference("pref_compression"));
|
||||
|
||||
String value = Integer.toString(dcContext.getConfigInt("show_emails"));
|
||||
showEmails.setValue(value);
|
||||
updateListSummary(showEmails, value);
|
||||
|
||||
Reference in New Issue
Block a user