From 5d056d5beac19514648c1628a9469c84d044bfe1 Mon Sep 17 00:00:00 2001 From: Jeff Bowen Date: Wed, 16 Nov 2022 19:01:32 -0500 Subject: [PATCH] AboutViewHolder: Set the background of the field item to green when verified --- .../android/fragments/ProfileAboutFragment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileAboutFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileAboutFragment.java index eaf12c9f3..7b8c1f25f 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileAboutFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileAboutFragment.java @@ -183,7 +183,7 @@ public class ProfileAboutFragment extends Fragment implements WindowInsetsAwareF } private abstract class BaseViewHolder extends BindableViewHolder{ - private ShapeDrawable background=new ShapeDrawable(); + protected ShapeDrawable background=new ShapeDrawable(); public BaseViewHolder(int layout){ super(getActivity(), layout, list); @@ -220,6 +220,10 @@ public class ProfileAboutFragment extends Fragment implements WindowInsetsAwareF super.onBind(item); title.setText(item.parsedName); value.setText(item.parsedValue); + if(item.verifiedAt != null){ + background.getPaint().setARGB(255,213,228, 217); + itemView.setBackground(background); + } } @Override