mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 20:57:25 +01:00
Fix gif posts rendered as video posts in Card Layout 2.
This commit is contained in:
parent
67f2ba955f
commit
7bd60c907f
@ -397,7 +397,6 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
|
|||||||
if (post != null) {
|
if (post != null) {
|
||||||
switch (post.getPostType()) {
|
switch (post.getPostType()) {
|
||||||
case Post.VIDEO_TYPE:
|
case Post.VIDEO_TYPE:
|
||||||
case Post.GIF_TYPE:
|
|
||||||
if (mAutoplay) {
|
if (mAutoplay) {
|
||||||
if (!mAutoplayNsfwVideos && post.isNSFW()) {
|
if (!mAutoplayNsfwVideos && post.isNSFW()) {
|
||||||
return VIEW_TYPE_POST_CARD_2_WITH_PREVIEW;
|
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_VIDEO_AUTOPLAY_TYPE;
|
||||||
}
|
}
|
||||||
return VIEW_TYPE_POST_CARD_2_WITH_PREVIEW;
|
return VIEW_TYPE_POST_CARD_2_WITH_PREVIEW;
|
||||||
|
case Post.GIF_TYPE:
|
||||||
case Post.IMAGE_TYPE:
|
case Post.IMAGE_TYPE:
|
||||||
case Post.LINK_TYPE:
|
case Post.LINK_TYPE:
|
||||||
case Post.NO_PREVIEW_LINK_TYPE:
|
case Post.NO_PREVIEW_LINK_TYPE:
|
||||||
|
Loading…
Reference in New Issue
Block a user