diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 52a4327c4e..482a7a5eef 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -337,7 +337,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. private NumberFormat NF = NumberFormat.getNumberInstance(); private static final int MAX_MORE = 100; // messages - private static final int MAX_PERMANENT_DELETE = 7; // messages + private static final int MAX_PERMANENT_DELETE = 10; // messages private static final int MAX_SEND_RAW = 50; // messages private static final int SWIPE_DISABLE_SELECT_DURATION = 1500; // milliseconds private static final float LUMINANCE_THRESHOLD = 0.7f; @@ -2914,15 +2914,15 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. .setIcon(R.drawable.twotone_delete_24); if (result.isTrash || !result.hasTrash || result.isJunk || - ids.length <= MAX_PERMANENT_DELETE || true) { // is trash or no trash or is junk + ids.length < MAX_PERMANENT_DELETE || true) { // is trash or no trash or is junk SpannableStringBuilder del = new SpannableStringBuilder(); del.append(getString(R.string.title_delete_permanently)); int pos = del.length(); - del.append(" (").append(NF.format(MAX_PERMANENT_DELETE)).append("-)"); + del.append(" (<").append(NF.format(MAX_PERMANENT_DELETE)).append(')'); del.setSpan(new RelativeSizeSpan(0.7f), pos, del.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); popupMenu.getMenu().add(Menu.NONE, R.string.title_delete_permanently, order++, del) .setIcon(R.drawable.twotone_delete_forever_24) - .setEnabled(ids.length <= MAX_PERMANENT_DELETE); + .setEnabled(ids.length < MAX_PERMANENT_DELETE); } if (result.accounts.size() > 0 /* IMAP */ && ids.length < MAX_SEND_RAW)