Add PlayerView.setControllerAnimationEnabled(boolean)

Issue: androidx/media#1227
PiperOrigin-RevId: 619558900
This commit is contained in:
ibaker 2024-03-27 09:36:22 -07:00 committed by Copybara-Service
parent ebfd540817
commit d684cdb330

View File

@ -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}.
*