From cb3cff777211667539291bf1f1e6cfeb507ed47d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marin=CC=83o?= Date: Mon, 8 Jul 2019 12:47:05 +0200 Subject: [PATCH] fix repeat --- .../java/com/brentvatne/exoplayer/ReactExoplayerView.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index fad34bcf..898e4eee 100644 --- a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -393,6 +393,7 @@ class ReactExoplayerView extends FrameLayout implements // Initializing the playerControlView initializePlayerControl(); setControls(controls); + applyModifiers(); } }, 1); } @@ -910,6 +911,10 @@ class ReactExoplayerView extends FrameLayout implements exoPlayerView.setResizeMode(resizeMode); } + private void applyModifiers() { + setRepeatModifier(repeat); + } + public void setRepeatModifier(boolean repeat) { if (player != null) { if (repeat) {