Disable unzip for Play store releases

pull/207/head
M66B 4 years ago
parent 91666640c0
commit 9afec13f17

@ -1452,7 +1452,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", true)); swUnzip.setChecked(prefs.getBoolean("unzip", !BuildConfig.PLAY_STORE_RELEASE));
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));

@ -3393,7 +3393,7 @@ public class MessageHelper {
else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && local.isCompressed()) { else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && local.isCompressed()) {
// https://commons.apache.org/proper/commons-compress/examples.html // https://commons.apache.org/proper/commons-compress/examples.html
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean unzip = prefs.getBoolean("unzip", true); boolean unzip = prefs.getBoolean("unzip", !BuildConfig.PLAY_STORE_RELEASE);
if (unzip) if (unzip)
if (local.isGzip() && !local.isTarGzip()) if (local.isGzip() && !local.isTarGzip())

Loading…
Cancel
Save