From 907e3483999646b3e2ddc79a218629f7689f17dc Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sun, 6 Jun 2021 15:39:58 +0800 Subject: Fix background color not applied to Card Layout 2. --- .../adapters/PostRecyclerViewAdapter.java | 66 +++++++++++++++++++--- 1 file changed, 59 insertions(+), 7 deletions(-) (limited to 'app/src/main/java/ml') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java index 4565a71c..65d24bd8 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java @@ -5,6 +5,7 @@ import android.content.SharedPreferences; import android.content.res.ColorStateList; import android.content.res.Configuration; import android.content.res.Resources; +import android.graphics.Color; import android.graphics.ColorFilter; import android.graphics.PorterDuff; import android.graphics.drawable.Drawable; @@ -476,7 +477,12 @@ public class PostRecyclerViewAdapter extends PagedListAdapter