Red for permanent deletion

This commit is contained in:
M66B
2021-05-13 15:27:28 +02:00
parent 8eb987ef38
commit b36ff741ad
2 changed files with 8 additions and 2 deletions

View File

@@ -350,6 +350,12 @@ public class EntityFolder extends EntityOrder implements Serializable {
return null;
}
static Integer getDefaultColor(Long action, String type) {
if (EntityMessage.SWIPE_ACTION_DELETE.equals(action))
return Color.RED;
return getDefaultColor(type);
}
String getDisplayName(Context context) {
return (display == null ? localizeName(context, name) : display);
}