Enable unzip by default

pull/207/head
M66B 3 years ago
parent e93df1edc8
commit 0d162c82ea

@ -1440,7 +1440,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
swImagesPlaceholders.setChecked(prefs.getBoolean("image_placeholders", true)); swImagesPlaceholders.setChecked(prefs.getBoolean("image_placeholders", true));
swImagesInline.setChecked(prefs.getBoolean("inline_images", false)); swImagesInline.setChecked(prefs.getBoolean("inline_images", false));
swButtonExtra.setChecked(prefs.getBoolean("button_extra", false)); swButtonExtra.setChecked(prefs.getBoolean("button_extra", false));
swUnzip.setChecked(prefs.getBoolean("unzip", false)); swUnzip.setChecked(prefs.getBoolean("unzip", true));
swAttachmentsAlt.setChecked(prefs.getBoolean("attachments_alt", false)); swAttachmentsAlt.setChecked(prefs.getBoolean("attachments_alt", false));
swThumbnails.setChecked(prefs.getBoolean("thumbnails", true)); swThumbnails.setChecked(prefs.getBoolean("thumbnails", true));

@ -3377,7 +3377,7 @@ public class MessageHelper {
else if ("application/zip".equals(local.type)) { else if ("application/zip".equals(local.type)) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean unzip = prefs.getBoolean("unzip", false); boolean unzip = prefs.getBoolean("unzip", true);
if (unzip) { if (unzip) {
// https://developer.android.com/reference/java/util/zip/ZipInputStream // https://developer.android.com/reference/java/util/zip/ZipInputStream

Loading…
Cancel
Save