From b63b3a1ff2d5d83308ed8f18488dd642335d5f7b Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 27 Feb 2019 22:27:59 +0200 Subject: [PATCH 1/1] profile list: also show the default color tag --- .../mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java index 16bc932b..136f6c91 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java @@ -19,7 +19,6 @@ package net.ktnx.mobileledger.ui.profiles; import android.content.Context; import android.content.Intent; -import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.util.Log; import android.view.LayoutInflater; @@ -154,7 +153,8 @@ public class ProfilesRecyclerViewAdapter holder.itemView.setTag(profile); int hue = profile.getThemeId(); - if (hue == -1) holder.mColorTag.setBackgroundColor(Color.TRANSPARENT); + if (hue == -1) holder.mColorTag + .setBackgroundColor(Colors.getPrimaryColorForHue(Colors.DEFAULT_HUE_DEG)); else holder.mColorTag.setBackgroundColor(Colors.getPrimaryColorForHue(hue)); holder.mTitle.setText(profile.getName()); -- 2.39.5