mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Add PlayerView.setControllerAnimationEnabled(boolean)
Issue: androidx/media#1227
PiperOrigin-RevId: 619558900
(cherry picked from commit d684cdb330)
This commit is contained in:
parent
26ce3f012a
commit
4caed3cfb2
1 changed files with 10 additions and 0 deletions
|
|
@ -967,6 +967,16 @@ public class PlayerView extends FrameLayout implements AdViewProvider {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether {@linkplain PlayerControlView#isAnimationEnabled() controller animation is
|
||||
* enabled}.
|
||||
*/
|
||||
@UnstableApi
|
||||
public void setControllerAnimationEnabled(boolean animationEnabled) {
|
||||
Assertions.checkStateNotNull(controller);
|
||||
controller.setAnimationEnabled(animationEnabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the {@link PlayerControlView.VisibilityListener}.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue