diff options
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java index 6d8b3b18..77c1f8fe 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java @@ -176,6 +176,7 @@ public class HistoryPostRecyclerViewAdapter extends PagingDataAdapter<Post, Recy private int mDefaultLinkPostLayout; private int mColorAccent; private int mCardViewBackgroundColor; + private int mFilledCardViewBackgroundColor; private int mPrimaryTextColor; private int mSecondaryTextColor; private int mPostTitleColor; @@ -318,8 +319,8 @@ public class HistoryPostRecyclerViewAdapter extends PagingDataAdapter<Post, Recy mDefaultLinkPostLayout = Integer.parseInt(sharedPreferences.getString(SharedPreferencesUtils.DEFAULT_LINK_POST_LAYOUT_KEY, "-1")); mColorAccent = customThemeWrapper.getColorAccent(); - //mCardViewBackgroundColor = customThemeWrapper.getCardViewBackgroundColor(); - mCardViewBackgroundColor = Color.parseColor("#FBEEFC"); + mCardViewBackgroundColor = customThemeWrapper.getCardViewBackgroundColor(); + mFilledCardViewBackgroundColor = customThemeWrapper.getFilledCardViewBackgroundColor(); mPrimaryTextColor = customThemeWrapper.getPrimaryTextColor(); mSecondaryTextColor = customThemeWrapper.getSecondaryTextColor(); mPostTitleColor = customThemeWrapper.getPostTitleColor(); @@ -2381,7 +2382,7 @@ public class HistoryPostRecyclerViewAdapter extends PagingDataAdapter<Post, Recy ((PostGalleryBaseGalleryTypeViewHolder) holder).frameLayout.setVisibility(View.GONE); ((PostGalleryBaseGalleryTypeViewHolder) holder).noPreviewImageView.setVisibility(View.GONE); } else if (holder instanceof PostMaterial3CardBaseViewHolder) { - holder.itemView.setBackgroundTintList(ColorStateList.valueOf(mCardViewBackgroundColor)); + holder.itemView.setBackgroundTintList(ColorStateList.valueOf(mFilledCardViewBackgroundColor)); mGlide.clear(((PostMaterial3CardBaseViewHolder) holder).iconGifImageView); ((PostMaterial3CardBaseViewHolder) holder).titleTextView.setTextColor(mPostTitleColor); if (holder instanceof PostMaterial3CardBaseVideoAutoplayViewHolder) { @@ -5339,7 +5340,7 @@ public class HistoryPostRecyclerViewAdapter extends PagingDataAdapter<Post, Recy constraintSet.applyTo(bottomConstraintLayout); } - itemView.setBackgroundTintList(ColorStateList.valueOf(mCardViewBackgroundColor)); + itemView.setBackgroundTintList(ColorStateList.valueOf(mFilledCardViewBackgroundColor)); if (mActivity.typeface != null) { subredditTextView.setTypeface(mActivity.typeface); |