From 3a7ff9cda19121cdc7bd250dd031e585b345cd56 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 8 Sep 2019 19:17:11 +0200 Subject: [PATCH] Use highlight unread color in navigation menu --- .../eu/faircode/email/AdapterNavAccount.java | 13 +++++++++++-- .../java/eu/faircode/email/AdapterNavFolder.java | 16 ++++++++++------ .../java/eu/faircode/email/AdapterNavMenu.java | 14 ++++++++++++-- .../eu/faircode/email/AdapterNavUnified.java | 13 +++++++++++-- 4 files changed, 44 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterNavAccount.java b/app/src/main/java/eu/faircode/email/AdapterNavAccount.java index a6b2f4e83c..06ce3a52f0 100644 --- a/app/src/main/java/eu/faircode/email/AdapterNavAccount.java +++ b/app/src/main/java/eu/faircode/email/AdapterNavAccount.java @@ -21,6 +21,7 @@ package eu.faircode.email; import android.content.Context; import android.content.Intent; +import android.content.SharedPreferences; import android.graphics.Typeface; import android.view.LayoutInflater; import android.view.View; @@ -31,6 +32,7 @@ import android.widget.TextView; import androidx.annotation.NonNull; import androidx.lifecycle.LifecycleOwner; import androidx.localbroadcastmanager.content.LocalBroadcastManager; +import androidx.preference.PreferenceManager; import androidx.recyclerview.widget.DiffUtil; import androidx.recyclerview.widget.ListUpdateCallback; import androidx.recyclerview.widget.RecyclerView; @@ -48,6 +50,9 @@ public class AdapterNavAccount extends RecyclerView.Adapter items = new ArrayList<>(); private NumberFormat NF = NumberFormat.getNumberInstance(); @@ -96,8 +101,7 @@ public class AdapterNavAccount extends RecyclerView.Adapter items = new ArrayList<>(); private NumberFormat NF = NumberFormat.getNumberInstance(); private DateFormat DTF; - private boolean debug; - public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { private View view; private ImageView ivItem; @@ -118,8 +120,7 @@ public class AdapterNavFolder extends RecyclerView.Adapter items = new ArrayList<>(); private NumberFormat NF = NumberFormat.getNumberInstance(); @@ -85,8 +90,7 @@ public class AdapterNavMenu extends RecyclerView.Adapter items = new ArrayList<>(); private NumberFormat NF = NumberFormat.getNumberInstance(); @@ -86,8 +91,7 @@ public class AdapterNavUnified extends RecyclerView.Adapter types) {