From 52db8688d19ad03d624df3de8fd8c04f747914fc Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Wed, 25 Sep 2024 18:19:13 -0400 Subject: Fix theming issues in CustomThemeListingRecyclerViewAdapter. --- .../adapters/CustomThemeListingRecyclerViewAdapter.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CustomThemeListingRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CustomThemeListingRecyclerViewAdapter.java index 93fc08fc..01782895 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CustomThemeListingRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CustomThemeListingRecyclerViewAdapter.java @@ -127,6 +127,8 @@ public class CustomThemeListingRecyclerViewAdapter extends RecyclerView.Adapter< PredefinedCustomThemeViewHolder(@NonNull ItemPredefinedCustomThemeBinding binding) { super(binding.getRoot()); this.binding = binding; + binding.nameTextViewItemPredefinedCustomTheme.setTextColor(activity.customThemeWrapper.getPrimaryTextColor()); + binding.addImageViewItemPredefinedCustomTheme.setColorFilter(activity.customThemeWrapper.getPrimaryIconColor()); if (activity.typeface != null) { binding.nameTextViewItemPredefinedCustomTheme.setTypeface(activity.typeface); } @@ -139,6 +141,9 @@ public class CustomThemeListingRecyclerViewAdapter extends RecyclerView.Adapter< UserCustomThemeViewHolder(@NonNull ItemUserCustomThemeBinding binding) { super(binding.getRoot()); this.binding = binding; + binding.nameTextViewItemUserCustomTheme.setTextColor(activity.customThemeWrapper.getPrimaryTextColor()); + binding.addImageViewItemUserCustomTheme.setColorFilter(activity.customThemeWrapper.getPrimaryIconColor()); + binding.shareImageViewItemUserCustomTheme.setColorFilter(activity.customThemeWrapper.getPrimaryIconColor()); if (activity.typeface != null) { binding.nameTextViewItemUserCustomTheme.setTypeface(activity.typeface); } @@ -149,6 +154,7 @@ public class CustomThemeListingRecyclerViewAdapter extends RecyclerView.Adapter< PreDefinedThemeDividerViewHolder(@NonNull View itemView) { super(itemView); + ((TextView) itemView).setTextColor(activity.customThemeWrapper.getSecondaryTextColor()); if (activity.typeface != null) { ((TextView) itemView).setTypeface(activity.typeface); } @@ -159,6 +165,7 @@ public class CustomThemeListingRecyclerViewAdapter extends RecyclerView.Adapter< UserThemeDividerViewHolder(@NonNull View itemView) { super(itemView); + ((TextView) itemView).setTextColor(activity.customThemeWrapper.getSecondaryTextColor()); if (activity.typeface != null) { ((TextView) itemView).setTypeface(activity.typeface); } -- cgit v1.2.3