mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 00:20:50 +01:00
Refactoring
This commit is contained in:
@@ -160,6 +160,18 @@ public class EntityFolder implements Serializable {
|
||||
public EntityFolder() {
|
||||
}
|
||||
|
||||
static int getIcon(String type) {
|
||||
if (EntityFolder.INBOX.equals(type))
|
||||
return R.drawable.baseline_move_to_inbox_24;
|
||||
if (EntityFolder.ARCHIVE.equals(type))
|
||||
return R.drawable.baseline_archive_24;
|
||||
if (EntityFolder.TRASH.equals(type))
|
||||
return R.drawable.baseline_delete_24;
|
||||
if (EntityFolder.JUNK.equals(type))
|
||||
return R.drawable.baseline_flag_24;
|
||||
return R.drawable.baseline_folder_24;
|
||||
}
|
||||
|
||||
String getDisplayName(Context context) {
|
||||
return (display == null ? Helper.localizeFolderName(context, name) : display);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user