aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-10-22 15:08:05 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-10-22 15:08:05 +0000
commitfaca5adc3b74914de870b5615a92f62172cde2cd (patch)
treedbeaa062fb3a6d1ba9944c886af0d61a1956df1c /app/src/main/java/ml/docilealligator
parent2afbba4b682eade2cf1b999309a760cab5afd5aa (diff)
downloadinfinity-for-reddit-faca5adc3b74914de870b5615a92f62172cde2cd.tar
infinity-for-reddit-faca5adc3b74914de870b5615a92f62172cde2cd.tar.gz
infinity-for-reddit-faca5adc3b74914de870b5615a92f62172cde2cd.tar.bz2
infinity-for-reddit-faca5adc3b74914de870b5615a92f62172cde2cd.tar.lz
infinity-for-reddit-faca5adc3b74914de870b5615a92f62172cde2cd.tar.xz
infinity-for-reddit-faca5adc3b74914de870b5615a92f62172cde2cd.tar.zst
infinity-for-reddit-faca5adc3b74914de870b5615a92f62172cde2cd.zip
Fix card color issue in HistoryPostRecyclerViewAdapter.
Diffstat (limited to 'app/src/main/java/ml/docilealligator')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java9
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);