mirror of
https://github.com/androidx/media.git
synced 2025-05-03 21:57:46 +08:00
Hide fullscreen button if no listener is registered
PiperOrigin-RevId: 322912266
This commit is contained in:
parent
ec78bde50c
commit
6fb28a8dc9
@ -562,6 +562,7 @@ public class StyledPlayerControlView extends FrameLayout {
|
|||||||
}
|
}
|
||||||
fullScreenButton = findViewById(R.id.exo_fullscreen);
|
fullScreenButton = findViewById(R.id.exo_fullscreen);
|
||||||
if (fullScreenButton != null) {
|
if (fullScreenButton != null) {
|
||||||
|
fullScreenButton.setVisibility(GONE);
|
||||||
fullScreenButton.setOnClickListener(this::onFullScreenButtonClicked);
|
fullScreenButton.setOnClickListener(this::onFullScreenButtonClicked);
|
||||||
}
|
}
|
||||||
settingsButton = findViewById(R.id.exo_settings);
|
settingsButton = findViewById(R.id.exo_settings);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user