From 661422d8ec1f288ba0080ca4bd4bcf7a3dfdd953 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 25 Apr 2019 18:11:18 +0200 Subject: [PATCH] Show if subscribed to folder --- .../java/eu/faircode/email/AdapterFolder.java | 3 ++ .../res/drawable/baseline_bookmark_24.xml | 10 +++++++ app/src/main/res/layout/fragment_legend.xml | 30 ++++++++++++++++--- app/src/main/res/layout/item_folder.xml | 13 +++++++- app/src/main/res/values/strings.xml | 1 + 5 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/drawable/baseline_bookmark_24.xml diff --git a/app/src/main/java/eu/faircode/email/AdapterFolder.java b/app/src/main/java/eu/faircode/email/AdapterFolder.java index 22ea46d98f..196f80abed 100644 --- a/app/src/main/java/eu/faircode/email/AdapterFolder.java +++ b/app/src/main/java/eu/faircode/email/AdapterFolder.java @@ -90,6 +90,7 @@ public class AdapterFolder extends RecyclerView.Adapter 0 ? View.VISIBLE : View.INVISIBLE)); ivNotify.setVisibility(folder.notify ? View.VISIBLE : View.GONE); + ivSubscribed.setVisibility(BuildConfig.DEBUG && folder.subscribed != null && folder.subscribed ? View.VISIBLE : View.GONE); if (folder.unseen > 0) tvName.setText(context.getString(R.string.title_name_count, diff --git a/app/src/main/res/drawable/baseline_bookmark_24.xml b/app/src/main/res/drawable/baseline_bookmark_24.xml new file mode 100644 index 0000000000..a51ebabad5 --- /dev/null +++ b/app/src/main/res/drawable/baseline_bookmark_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/layout/fragment_legend.xml b/app/src/main/res/layout/fragment_legend.xml index 79a04d2b75..5361c12f8a 100644 --- a/app/src/main/res/layout/fragment_legend.xml +++ b/app/src/main/res/layout/fragment_legend.xml @@ -110,8 +110,8 @@ android:layout_width="24dp" android:layout_height="24dp" android:layout_marginTop="24dp" - android:contentDescription="@string/title_legend_notify" - android:src="@drawable/baseline_notifications_24" + android:contentDescription="@string/title_legend_subscribed" + android:src="@drawable/baseline_bookmark_24" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/ivJunk" /> @@ -120,13 +120,35 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="18dp" - android:text="@string/title_legend_notify" + android:text="@string/title_legend_subscribed" android:textAppearance="@style/TextAppearance.AppCompat.Medium" app:layout_constraintBottom_toBottomOf="@id/ivNotify" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/ivNotify" app:layout_constraintTop_toTopOf="@id/ivNotify" /> + + + + + app:layout_constraintTop_toBottomOf="@id/ivSubscribed" /> + + Trash Spam Notify new messages + Subscribed to Unified inbox / primary account Account disconnected Account connected