From: Damyan Ivanov Date: Wed, 27 Feb 2019 20:27:59 +0000 (+0200) Subject: profile list: also show the default color tag X-Git-Tag: v0.7~46 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=b63b3a1ff2d5d83308ed8f18488dd642335d5f7b;p=mobile-ledger.git profile list: also show the default color tag --- 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());