mirror of https://github.com/M66B/FairEmail.git
Quick delete instead of trash in trash/junk folder
This commit is contained in:
parent
bbb0480512
commit
c7bf26a8ec
|
@ -6215,6 +6215,7 @@ public class FragmentMessages extends FragmentBase
|
|||
boolean more_delete = prefs.getBoolean("more_delete", false);
|
||||
boolean more_move = prefs.getBoolean("more_move", true);
|
||||
|
||||
boolean inTrash = EntityFolder.TRASH.equals(type);
|
||||
boolean inJunk = EntityFolder.JUNK.equals(type);
|
||||
|
||||
int count = 0;
|
||||
|
@ -6231,6 +6232,12 @@ public class FragmentMessages extends FragmentBase
|
|||
if (trash)
|
||||
count++;
|
||||
|
||||
if (!delete && !trash && (inTrash || inJunk) &&
|
||||
more_trash && count < MAX_QUICK_ACTIONS && result.canDelete()) {
|
||||
delete = true;
|
||||
count++;
|
||||
}
|
||||
|
||||
boolean junk = (more_junk && count < MAX_QUICK_ACTIONS && result.canJunk());
|
||||
if (junk)
|
||||
count++;
|
||||
|
|
Loading…
Reference in New Issue