From ac9eb643684ec3369525588fd97e233f1348e81f Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 12 Mar 2023 18:10:45 +0100 Subject: [PATCH] no controller for gif --- .../android/mastodon/ui/fragment/media/FragmentMedia.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/media/FragmentMedia.java b/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/media/FragmentMedia.java index 6aa7524ed..72e0e587c 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/media/FragmentMedia.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/media/FragmentMedia.java @@ -257,8 +257,10 @@ public class FragmentMedia extends Fragment { .createMediaSource(mediaItem); } player = new ExoPlayer.Builder(requireActivity()).build(); - if (type.equalsIgnoreCase("gifv")) + if (type.equalsIgnoreCase("gifv")) { player.setRepeatMode(Player.REPEAT_MODE_ONE); + binding.mediaVideo.setUseController(false); + } binding.mediaVideo.setPlayer(player); binding.loader.setVisibility(View.GONE); binding.mediaPicture.setVisibility(View.GONE);