From 8db3736dd48d0ad4e9d70096902d446a0d04a87e Mon Sep 17 00:00:00 2001 From: Sergei Kozelko Date: Fri, 5 Aug 2022 03:22:35 +0300 Subject: Fix loading previews after quick scroll (#861) * Request layout on ratio change * Change imageView visibility on bind/recycle to force layout change --- .../infinityforreddit/adapters/PostRecyclerViewAdapter.java | 2 ++ .../infinityforreddit/customviews/AspectRatioGifImageView.java | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'app/src/main/java') 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 8bf9d801..a50fd29b 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java @@ -812,6 +812,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter