diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-02-22 07:53:09 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-02-22 07:53:09 +0000 |
commit | 6c67fda7cf4e5d9a4c600327cd74633a52e64622 (patch) | |
tree | 520f88238fa94b7ae0dcb77878f5ee49bb2c90b6 /app/src | |
parent | 8d53a5e2739c3d6c720f336a00652b488f2c176c (diff) | |
download | infinity-for-reddit-6c67fda7cf4e5d9a4c600327cd74633a52e64622.tar infinity-for-reddit-6c67fda7cf4e5d9a4c600327cd74633a52e64622.tar.gz infinity-for-reddit-6c67fda7cf4e5d9a4c600327cd74633a52e64622.tar.bz2 infinity-for-reddit-6c67fda7cf4e5d9a4c600327cd74633a52e64622.tar.lz infinity-for-reddit-6c67fda7cf4e5d9a4c600327cd74633a52e64622.tar.xz infinity-for-reddit-6c67fda7cf4e5d9a4c600327cd74633a52e64622.tar.zst infinity-for-reddit-6c67fda7cf4e5d9a4c600327cd74633a52e64622.zip |
Continue adding Card Layout 2.
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java | 2 |
1 files changed, 2 insertions, 0 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 83cce279..b9762c50 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java @@ -865,6 +865,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView } else { Post.Preview preview = getSuitablePreview(post.getPreviews()); if (preview != null) { + ((PostCard2WithPreviewViewHolder) holder).imageView.setVisibility(View.VISIBLE); if (preview.getPreviewWidth() <= 0 || preview.getPreviewHeight() <= 0) { int height = (int) (400 * mScale); ((PostCard2WithPreviewViewHolder) holder).imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); @@ -1783,6 +1784,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView ((PostTextTypeViewHolder) holder).contentTextView.setVisibility(View.GONE); } else if (holder instanceof PostCard2WithPreviewViewHolder) { mGlide.clear(((PostCard2WithPreviewViewHolder) holder).imageView); + ((PostCard2WithPreviewViewHolder) holder).imageView.setVisibility(View.GONE); ((PostCard2WithPreviewViewHolder) holder).errorRelativeLayout.setVisibility(View.GONE); ((PostCard2WithPreviewViewHolder) holder).noPreviewImageView.setVisibility(View.GONE); ((PostCard2WithPreviewViewHolder) holder).progressBar.setVisibility(View.GONE); |