Always check for hideShutterView before showing shutterView
This commit is contained in:
parent
63f12eaed6
commit
6d74eb686f
@ -139,7 +139,7 @@ public final class ExoPlayerView extends FrameLayout {
|
|||||||
clearVideoView();
|
clearVideoView();
|
||||||
}
|
}
|
||||||
this.player = player;
|
this.player = player;
|
||||||
shutterView.setVisibility(VISIBLE);
|
shutterView.setVisibility(this.hideShutterView ? View.INVISIBLE : View.VISIBLE);
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
setVideoView();
|
setVideoView();
|
||||||
player.addVideoListener(componentListener);
|
player.addVideoListener(componentListener);
|
||||||
@ -206,7 +206,7 @@ public final class ExoPlayerView extends FrameLayout {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Video disabled so the shutter must be closed.
|
// Video disabled so the shutter must be closed.
|
||||||
shutterView.setVisibility(VISIBLE);
|
shutterView.setVisibility(this.hideShutterView ? View.INVISIBLE : View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void invalidateAspectRatio() {
|
public void invalidateAspectRatio() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user