From 2ba5234bb4baa63fc7c3e8f6637dcfa4df34f897 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 7 Sep 2022 18:10:15 +0200 Subject: [PATCH] Fix issue #141 - Add video icon for gif --- .../main/java/app/fedilab/android/ui/drawer/StatusAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java index eace2a99..1a5bd581 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java @@ -1203,7 +1203,7 @@ public class StatusAdapter extends RecyclerView.Adapter lp = new RelativeLayout.LayoutParams((int) Helper.convertDpToPixel(200, context), (int) Helper.convertDpToPixel(200, context)); layoutMediaBinding.media.setScaleType(ImageView.ScaleType.CENTER_CROP); } - if (attachment.type != null && attachment.type.equalsIgnoreCase("video")) { + if (attachment.type != null && (attachment.type.equalsIgnoreCase("video") || attachment.type.equalsIgnoreCase("gifv"))) { layoutMediaBinding.playVideo.setVisibility(View.VISIBLE); } else { layoutMediaBinding.playVideo.setVisibility(View.GONE);