diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-03-02 09:52:59 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-03-02 09:52:59 +0000 |
commit | 7bd60c907f232515561c951cad9145390274fad9 (patch) | |
tree | 3edd1562f6108a1f49c0b56df8b4e82df8f5d500 /app | |
parent | 67f2ba955f8f94ec8b72c1fb963b618ba5c32788 (diff) | |
download | infinity-for-reddit-7bd60c907f232515561c951cad9145390274fad9.tar infinity-for-reddit-7bd60c907f232515561c951cad9145390274fad9.tar.gz infinity-for-reddit-7bd60c907f232515561c951cad9145390274fad9.tar.bz2 infinity-for-reddit-7bd60c907f232515561c951cad9145390274fad9.tar.lz infinity-for-reddit-7bd60c907f232515561c951cad9145390274fad9.tar.xz infinity-for-reddit-7bd60c907f232515561c951cad9145390274fad9.tar.zst infinity-for-reddit-7bd60c907f232515561c951cad9145390274fad9.zip |
Fix gif posts rendered as video posts in Card Layout 2.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java | 2 |
1 files changed, 1 insertions, 1 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 e1911342..ab431025 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java @@ -397,7 +397,6 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView if (post != null) { switch (post.getPostType()) { case Post.VIDEO_TYPE: - case Post.GIF_TYPE: if (mAutoplay) { if (!mAutoplayNsfwVideos && post.isNSFW()) { return VIEW_TYPE_POST_CARD_2_WITH_PREVIEW; @@ -405,6 +404,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView return VIEW_TYPE_POST_CARD_2_VIDEO_AUTOPLAY_TYPE; } return VIEW_TYPE_POST_CARD_2_WITH_PREVIEW; + case Post.GIF_TYPE: case Post.IMAGE_TYPE: case Post.LINK_TYPE: case Post.NO_PREVIEW_LINK_TYPE: |