mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
add an experimental feature for high image compression
This commit is contained in:
@@ -165,6 +165,16 @@
|
||||
<item>2</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_compression_entries">
|
||||
<item>Balanced</item>
|
||||
<item>Worse quality, small size</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_compression_values">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
</string-array>
|
||||
|
||||
<!-- discrete MIME type (the part before the "/") -->
|
||||
|
||||
|
||||
|
||||
@@ -52,6 +52,21 @@
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:layout="@layout/preference_divider" />
|
||||
|
||||
|
||||
<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" />
|
||||
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:layout="@layout/preference_divider" />
|
||||
|
||||
|
||||
<PreferenceCategory android:title="@string/pref_other">
|
||||
<Preference android:key="pref_backup"
|
||||
android:title="@string/pref_backup"
|
||||
|
||||
Reference in New Issue
Block a user