mirror of https://github.com/M66B/FairEmail.git
Disable unzip for Play store releases
This commit is contained in:
parent
91666640c0
commit
9afec13f17
|
@ -1452,7 +1452,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|||
swImagesPlaceholders.setChecked(prefs.getBoolean("image_placeholders", true));
|
||||
swImagesInline.setChecked(prefs.getBoolean("inline_images", 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));
|
||||
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()) {
|
||||
// https://commons.apache.org/proper/commons-compress/examples.html
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean unzip = prefs.getBoolean("unzip", true);
|
||||
boolean unzip = prefs.getBoolean("unzip", !BuildConfig.PLAY_STORE_RELEASE);
|
||||
|
||||
if (unzip)
|
||||
if (local.isGzip() && !local.isTarGzip())
|
||||
|
|
Loading…
Reference in New Issue