Debug info: swipe left/right

This commit is contained in:
M66B
2022-03-28 08:32:50 +02:00
parent 82d523db04
commit fe1c67bd2c
3 changed files with 44 additions and 2 deletions

View File

@@ -567,6 +567,32 @@ public class EntityMessage implements Serializable {
}
}
static String getSwipeType(Long type) {
if (type == null)
return "none";
if (type > 0)
return "folder";
if (SWIPE_ACTION_ASK.equals(type))
return "ask";
if (SWIPE_ACTION_SEEN.equals(type))
return "seen";
if (SWIPE_ACTION_SNOOZE.equals(type))
return "snooze";
if (SWIPE_ACTION_HIDE.equals(type))
return "hide";
if (SWIPE_ACTION_MOVE.equals(type))
return "move";
if (SWIPE_ACTION_FLAG.equals(type))
return "flag";
if (SWIPE_ACTION_DELETE.equals(type))
return "delete";
if (SWIPE_ACTION_JUNK.equals(type))
return "junk";
if (SWIPE_ACTION_REPLY.equals(type))
return "reply";
return "???";
}
@Override
public boolean equals(Object obj) {
if (obj instanceof EntityMessage) {