mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 17:13:23 +02:00
Cleanup
This commit is contained in:
@@ -60,8 +60,6 @@ import android.provider.Settings;
|
||||
import android.security.KeyChain;
|
||||
import android.security.KeyChainException;
|
||||
import android.text.SpannableString;
|
||||
import android.text.SpannableStringBuilder;
|
||||
import android.text.Spanned;
|
||||
import android.text.TextUtils;
|
||||
import android.text.format.DateUtils;
|
||||
import android.text.style.ForegroundColorSpan;
|
||||
@@ -2950,14 +2948,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_trash, order++, R.string.title_trash)
|
||||
.setIcon(R.drawable.twotone_delete_24);
|
||||
|
||||
if (result.isTrash || !result.hasTrash || result.isJunk || 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.setSpan(new RelativeSizeSpan(0.7f), pos, del.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_delete_permanently, order++, del)
|
||||
if (result.isTrash || !result.hasTrash || result.isJunk || true) // is trash or no trash or is junk
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_delete_permanently, order++, R.string.title_delete_permanently)
|
||||
.setIcon(R.drawable.twotone_delete_forever_24);
|
||||
}
|
||||
|
||||
if (result.accounts.size() > 0 /* IMAP */ && ids.length < MAX_SEND_RAW)
|
||||
popupMenu.getMenu().add(Menu.NONE, R.string.title_raw_send, order++, R.string.title_raw_send)
|
||||
|
||||
Reference in New Issue
Block a user