aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-09-10 13:44:38 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-09-10 13:44:38 +0000
commit09adffed795be36767ef47998f7dd37217c78923 (patch)
tree117cca7b4f9feb786be8903da78501e43acaddf7 /app/src/main/java/ml/docilealligator
parent6550bc70d6ef01b7ee26642930fd4b088b622254 (diff)
downloadinfinity-for-reddit-09adffed795be36767ef47998f7dd37217c78923.tar
infinity-for-reddit-09adffed795be36767ef47998f7dd37217c78923.tar.gz
infinity-for-reddit-09adffed795be36767ef47998f7dd37217c78923.tar.bz2
infinity-for-reddit-09adffed795be36767ef47998f7dd37217c78923.tar.lz
infinity-for-reddit-09adffed795be36767ef47998f7dd37217c78923.tar.xz
infinity-for-reddit-09adffed795be36767ef47998f7dd37217c78923.tar.zst
infinity-for-reddit-09adffed795be36767ef47998f7dd37217c78923.zip
Continue adding Card Layout 3.
Diffstat (limited to 'app/src/main/java/ml/docilealligator')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java20
1 files changed, 10 insertions, 10 deletions
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 e4b70cc7..cd2e141d 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
@@ -2644,15 +2644,15 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie
}
mGlide.clear(((PostVideoAutoplayViewHolder) holder).previewImageView);
((PostVideoAutoplayViewHolder) holder).previewImageView.setVisibility(View.GONE);
- } else*/ if (holder instanceof PostWithPreviewTypeViewHolder) {
- mGlide.clear(((PostWithPreviewTypeViewHolder) holder).imageView);
- ((PostWithPreviewTypeViewHolder) holder).imageView.setVisibility(View.GONE);
- ((PostWithPreviewTypeViewHolder) holder).imageWrapperRelativeLayout.setVisibility(View.GONE);
- ((PostWithPreviewTypeViewHolder) holder).errorTextView.setVisibility(View.GONE);
- ((PostWithPreviewTypeViewHolder) holder).noPreviewLinkImageView.setVisibility(View.GONE);
- ((PostWithPreviewTypeViewHolder) holder).progressBar.setVisibility(View.GONE);
- ((PostWithPreviewTypeViewHolder) holder).videoOrGifIndicatorImageView.setVisibility(View.GONE);
- ((PostWithPreviewTypeViewHolder) holder).linkTextView.setVisibility(View.GONE);
+ } else*/ if (holder instanceof PostMaterial3CardWithPreviewViewHolder) {
+ mGlide.clear(((PostMaterial3CardWithPreviewViewHolder) holder).binding.imageViewItemPostWithPreview);
+ ((PostMaterial3CardWithPreviewViewHolder) holder).binding.imageViewItemPostWithPreview.setVisibility(View.GONE);
+ ((PostMaterial3CardWithPreviewViewHolder) holder).binding.imageWrapperRelativeLayoutItemPostWithPreview.setVisibility(View.GONE);
+ ((PostMaterial3CardWithPreviewViewHolder) holder).binding.loadImageErrorTextViewItemPostWithPreview.setVisibility(View.GONE);
+ ((PostMaterial3CardWithPreviewViewHolder) holder).binding.imageViewNoPreviewGalleryItemPostWithPreview.setVisibility(View.GONE);
+ ((PostMaterial3CardWithPreviewViewHolder) holder).binding.progressBarItemPostWithPreview.setVisibility(View.GONE);
+ ((PostMaterial3CardWithPreviewViewHolder) holder).binding.videoOrGifIndicatorImageViewItemPostWithPreview.setVisibility(View.GONE);
+ ((PostMaterial3CardWithPreviewViewHolder) holder).binding.linkTextViewItemPostWithPreview.setVisibility(View.GONE);
}/* else if (holder instanceof PostBaseGalleryTypeViewHolder) {
((PostBaseGalleryTypeViewHolder) holder).frameLayout.setVisibility(View.GONE);
((PostBaseGalleryTypeViewHolder) holder).noPreviewImageView.setVisibility(View.GONE);
@@ -5962,7 +5962,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie
upvoteButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor));
downvoteButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor));
commentsCountButton.setTextColor(mPostIconAndInfoColor);
- commentsCountButton.setIcon(mCommentIcon);
+ //commentsCountButton.setIcon(mCommentIcon);
//commentsCountButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor));
saveButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor));
shareButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor));