Quick delete instead of trash in trash/junk folder

This commit is contained in:
M66B 2022-10-22 08:28:12 +02:00
parent bbb0480512
commit c7bf26a8ec
1 changed files with 7 additions and 0 deletions

View File

@ -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++;