mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 08:32:16 +01:00
Default swipe icon colors
This commit is contained in:
@@ -20,6 +20,7 @@ package eu.faircode.email;
|
||||
*/
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -325,6 +326,12 @@ public class EntityFolder extends EntityOrder implements Serializable {
|
||||
return R.drawable.twotone_folder_24;
|
||||
}
|
||||
|
||||
static Integer getDefaultColor(String type) {
|
||||
if (EntityFolder.TRASH.equals(type) || EntityFolder.JUNK.equals(type))
|
||||
return Color.RED;
|
||||
return null;
|
||||
}
|
||||
|
||||
String getDisplayName(Context context) {
|
||||
return (display == null ? localizeName(context, name) : display);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user