From e4588874220a123e0ac10f0cfa89243794ad9e35 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 28 Dec 2018 10:23:47 +0000 Subject: [PATCH] Removed empty trash, added FAQ --- FAQ.md | 10 +++- .../java/eu/faircode/email/AdapterFolder.java | 55 +------------------ app/src/main/res/values/strings.xml | 2 - 3 files changed, 11 insertions(+), 56 deletions(-) diff --git a/FAQ.md b/FAQ.md index 001613147a..d1bcd19f1f 100644 --- a/FAQ.md +++ b/FAQ.md @@ -117,7 +117,7 @@ Note that your contacts could unknowingly send malicious messages if they got in * [(52) Why does it take some time to reconnect to an account?](#user-content-faq52) * [(53) Can you stick the message action bar to the top/bottom?](#user-content-faq53) * [(54) How do I use a namespace prefix?](#user-content-faq54) - +* [(55) How can I mark all messages as read / move or delete all messages?](#user-content-faq55) [I have another question.](#support) @@ -825,6 +825,14 @@ For example the Gmail spam folder is called: By setting the namespace prefix to *[Gmail]* FairEmail will automatically remove *[Gmail]/* from all folder names. + +**(55) How can I mark all messages as read / move or delete all messages?** + +You can use multiple select for this. +Long press the first message, don't lift your finger and slide down to the last message. +Then use the three dot action button to execute the desired action. + + ## Support If you have another question, want to request a feature or report a bug, you can use [this forum](https://forum.xda-developers.com/android/apps-games/source-email-t3824168). diff --git a/app/src/main/java/eu/faircode/email/AdapterFolder.java b/app/src/main/java/eu/faircode/email/AdapterFolder.java index b807e0f39c..044ccebf76 100644 --- a/app/src/main/java/eu/faircode/email/AdapterFolder.java +++ b/app/src/main/java/eu/faircode/email/AdapterFolder.java @@ -20,7 +20,6 @@ package eu.faircode.email; */ import android.content.Context; -import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.ColorStateList; @@ -79,8 +78,7 @@ public class AdapterFolder extends RecyclerView.Adapter() { - @Override - protected Void onLoad(Context context, Bundle args) { - long id = args.getLong("id"); - - DB db = DB.getInstance(context); - try { - db.beginTransaction(); - - for (Long mid : db.message().getMessageByFolder(id)) { - EntityMessage message = db.message().getMessage(mid); - EntityOperation.queue(db, message, EntityOperation.DELETE); - } - - db.setTransactionSuccessful(); - } finally { - db.endTransaction(); - } - - return null; - } - - @Override - protected void onException(Bundle args, Throwable ex) { - Helper.unexpectedError(context, owner, ex); - } - }.load(context, owner, args); - } - }) - .setNegativeButton(android.R.string.cancel, null) - .show(); - } - private void onActionEditProperties() { LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context); lbm.sendBroadcast( diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1daedf7c25..392956be8c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -204,10 +204,8 @@ Synchronize now Delete local messages - Empty trash Edit properties - Delete all trashed messages permanently? Delete operations with an error message? Folder name