From faaa1b432dbd1048b94ae515d419e3e39f37aead Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 22 May 2019 16:29:18 +0200 Subject: [PATCH] Show folder type --- .../java/eu/faircode/email/AdapterFolder.java | 3 + .../java/eu/faircode/email/EntityFolder.java | 2 + .../res/layout/fragment_legend_folders.xml | 68 ++++++++++++------- app/src/main/res/layout/item_folder.xml | 15 +++- app/src/main/res/values/strings.xml | 4 +- 5 files changed, 66 insertions(+), 26 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterFolder.java b/app/src/main/java/eu/faircode/email/AdapterFolder.java index e7415ebb27..902e054fee 100644 --- a/app/src/main/java/eu/faircode/email/AdapterFolder.java +++ b/app/src/main/java/eu/faircode/email/AdapterFolder.java @@ -100,6 +100,7 @@ public class AdapterFolder extends RecyclerView.Adapter 0 && folder.unified ? View.VISIBLE : View.GONE); if (account < 0) diff --git a/app/src/main/java/eu/faircode/email/EntityFolder.java b/app/src/main/java/eu/faircode/email/EntityFolder.java index 351082308c..4f1a71e818 100644 --- a/app/src/main/java/eu/faircode/email/EntityFolder.java +++ b/app/src/main/java/eu/faircode/email/EntityFolder.java @@ -205,6 +205,8 @@ public class EntityFolder extends EntityOrder implements Serializable { return R.drawable.baseline_inbox_24; if (EntityFolder.DRAFTS.equals(type)) return R.drawable.baseline_drafts_24; + if (EntityFolder.SENT.equals(type)) + return R.drawable.baseline_send_24; if (EntityFolder.ARCHIVE.equals(type)) return R.drawable.baseline_archive_24; if (EntityFolder.TRASH.equals(type)) diff --git a/app/src/main/res/layout/fragment_legend_folders.xml b/app/src/main/res/layout/fragment_legend_folders.xml index 797eed0e4f..272250b81d 100644 --- a/app/src/main/res/layout/fragment_legend_folders.xml +++ b/app/src/main/res/layout/fragment_legend_folders.xml @@ -18,7 +18,7 @@ android:layout_height="wrap_content"> + app:layout_constraintStart_toEndOf="@id/ivType" + app:layout_constraintTop_toTopOf="@id/ivType" /> + app:layout_constraintTop_toBottomOf="@id/ivType" /> + app:layout_constraintStart_toEndOf="@id/ivDrafts" + app:layout_constraintTop_toTopOf="@id/ivDrafts" /> + app:layout_constraintTop_toBottomOf="@id/ivDrafts" /> + app:layout_constraintStart_toEndOf="@id/ivSent" + app:layout_constraintTop_toTopOf="@id/ivSent" /> + + + + + app:layout_constraintTop_toBottomOf="@id/ivArchive" /> + + Unified inbox / primary account Inbox - Archive Drafts + Sent + Archive Trash Spam Primary @@ -656,6 +657,7 @@ Save Delete Count + Folders type Long press for options To limit battery and network usage not all folders and not all messages will be synchronized by default