mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Auto download of inline images can cause unexpected data usage
This commit is contained in:
parent
7e2d954035
commit
4ba42bab3f
1 changed files with 0 additions and 10 deletions
|
@ -3257,9 +3257,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
protected Void onExecute(Context context, Bundle args) {
|
protected Void onExecute(Context context, Bundle args) {
|
||||||
long id = args.getLong("id");
|
long id = args.getLong("id");
|
||||||
|
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
||||||
boolean inline_images = prefs.getBoolean("inline_images", false);
|
|
||||||
|
|
||||||
DB db = DB.getInstance(context);
|
DB db = DB.getInstance(context);
|
||||||
try {
|
try {
|
||||||
db.beginTransaction();
|
db.beginTransaction();
|
||||||
|
@ -3283,13 +3280,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
if (!message.content)
|
if (!message.content)
|
||||||
EntityOperation.queue(context, message, EntityOperation.BODY);
|
EntityOperation.queue(context, message, EntityOperation.BODY);
|
||||||
|
|
||||||
if (inline_images) {
|
|
||||||
List<EntityAttachment> attachments = db.attachment().getAttachments(message.id);
|
|
||||||
for (EntityAttachment attachment : attachments)
|
|
||||||
if (!attachment.available && attachment.isInline() && attachment.isImage())
|
|
||||||
EntityOperation.queue(context, message, EntityOperation.ATTACHMENT, attachment.id);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (account.auto_seen && !folder.read_only)
|
if (account.auto_seen && !folder.read_only)
|
||||||
EntityOperation.queue(context, message, EntityOperation.SEEN, true);
|
EntityOperation.queue(context, message, EntityOperation.SEEN, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue