Add PlayerView.setControllerAnimationEnabled(boolean)
Issue: androidx/media#1227 PiperOrigin-RevId: 619558900
This commit is contained in:
parent
ebfd540817
commit
d684cdb330
@ -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…
x
Reference in New Issue
Block a user