mirror of
				https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
				synced 2025-10-31 08:58:10 +01:00 
			
		
		
		
	Fix gif posts rendered as video posts in Card Layout 2.
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user