diff --git a/CHANGELOG.md b/CHANGELOG.md index a94aac46..8a872711 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Fix nil string uri parameter error [#695](https://github.com/react-native-video/react-native-video/pull/695) - (Breaking) Bump shaka-player to 3.3.2 [#2587](https://github.com/react-native-video/react-native-video/pull/2587) - Improve basic player example on android [#2662](https://github.com/react-native-video/react-native-video/pull/2662) +- Ensure we always use `hideShutterView` before showing the `shutterView` on Android [#2609](https://github.com/react-native-video/react-native-video/pull/2609) ### Version 5.2.0 diff --git a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java index 2e2f3169..a2657cc2 100644 --- a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java +++ b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java @@ -136,7 +136,7 @@ public final class ExoPlayerView extends FrameLayout { clearVideoView(); } this.player = player; - shutterView.setVisibility(VISIBLE); + shutterView.setVisibility(this.hideShutterView ? View.INVISIBLE : View.VISIBLE); if (player != null) { setVideoView(); player.addVideoListener(componentListener); @@ -203,7 +203,7 @@ public final class ExoPlayerView extends FrameLayout { } } // Video disabled so the shutter must be closed. - shutterView.setVisibility(VISIBLE); + shutterView.setVisibility(this.hideShutterView ? View.INVISIBLE : View.VISIBLE); } public void invalidateAspectRatio() {