mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
no controller for gif
This commit is contained in:
parent
6261eadeb7
commit
ac9eb64368
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue