mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 15:46:34 +02:00
Replace report spam icon
This commit is contained in:
@@ -4659,7 +4659,7 @@ class Core {
|
||||
PendingIntent piJunk = PendingIntentCompat.getService(
|
||||
context, ServiceUI.PI_JUNK, junk, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
NotificationCompat.Action.Builder actionJunk = new NotificationCompat.Action.Builder(
|
||||
R.drawable.twotone_report_problem_24,
|
||||
R.drawable.twotone_report_24,
|
||||
context.getString(R.string.title_advanced_notify_action_junk),
|
||||
piJunk)
|
||||
.setShowsUserInterface(false)
|
||||
|
||||
@@ -346,7 +346,7 @@ public class EntityFolder extends EntityOrder implements Serializable {
|
||||
if (EntityFolder.TRASH.equals(type))
|
||||
return R.drawable.twotone_delete_24;
|
||||
if (EntityFolder.JUNK.equals(type))
|
||||
return R.drawable.twotone_report_problem_24;
|
||||
return R.drawable.twotone_report_24;
|
||||
if (EntityFolder.SYSTEM.equals(type))
|
||||
return R.drawable.twotone_folder_special_24;
|
||||
return R.drawable.twotone_folder_24;
|
||||
|
||||
@@ -2146,7 +2146,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
else if (EntityMessage.SWIPE_ACTION_MOVE.equals(action))
|
||||
icon = R.drawable.twotone_folder_24;
|
||||
else if (EntityMessage.SWIPE_ACTION_JUNK.equals(action))
|
||||
icon = R.drawable.twotone_report_problem_24;
|
||||
icon = R.drawable.twotone_report_24;
|
||||
else if (EntityMessage.SWIPE_ACTION_DELETE.equals(action) ||
|
||||
(action.equals(message.folder) && EntityFolder.TRASH.equals(message.folderType)) ||
|
||||
(EntityFolder.TRASH.equals(actionType) && EntityFolder.JUNK.equals(message.folderType)))
|
||||
@@ -3082,7 +3082,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
|
||||
if (result.hasJunk && !result.isJunk && !result.isDrafts) // has junk and not junk/drafts
|
||||
popupMenu.getMenu().add(Menu.FIRST, R.string.title_spam, order++, R.string.title_spam)
|
||||
.setIcon(R.drawable.twotone_report_problem_24);
|
||||
.setIcon(R.drawable.twotone_report_24);
|
||||
|
||||
if (!result.isTrash && result.hasTrash && !result.isJunk) // not trash and has trash and not is junk
|
||||
popupMenu.getMenu().add(Menu.FIRST, R.string.title_trash, order++, R.string.title_trash)
|
||||
|
||||
Reference in New Issue
Block a user