Hide fullscreen button if no listener is registered

PiperOrigin-RevId: 322912266
This commit is contained in:
insun 2020-07-24 02:35:53 +01:00 committed by Oliver Woodman
parent ec78bde50c
commit 6fb28a8dc9

View File

@ -562,6 +562,7 @@ public class StyledPlayerControlView extends FrameLayout {
}
fullScreenButton = findViewById(R.id.exo_fullscreen);
if (fullScreenButton != null) {
fullScreenButton.setVisibility(GONE);
fullScreenButton.setOnClickListener(this::onFullScreenButtonClicked);
}
settingsButton = findViewById(R.id.exo_settings);