From f5320c1e60fbc9e967c11189a3da00fd8b440278 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Mon, 28 Sep 2020 19:50:14 +0800 Subject: Fix Gallery posts not showing preview image. --- .../main/java/ml/docilealligator/infinityforreddit/Post/ParsePost.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src/main/java') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Post/ParsePost.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Post/ParsePost.java index 4aba1588..de812011 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Post/ParsePost.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Post/ParsePost.java @@ -422,6 +422,7 @@ public class ParsePost { if (!gallery.isEmpty()) { post.setPostType(Post.GALLERY_TYPE); post.setGallery(gallery); + post.setPreviews(previews); } } else if (post.getPostType() == Post.LINK_TYPE) { Uri uri = Uri.parse(url); -- cgit v1.2.3