Skip to content

Commit 4caed3c

Browse files
icbakerSheenaChhabra
authored andcommitted
Add PlayerView.setControllerAnimationEnabled(boolean)
Issue: #1227 PiperOrigin-RevId: 619558900 (cherry picked from commit d684cdb)
1 parent 26ce3f0 commit 4caed3c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libraries/ui/src/main/java/androidx/media3/ui/PlayerView.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,16 @@ public void setControllerVisibilityListener(@Nullable ControllerVisibilityListen
967967
}
968968
}
969969

970+
/**
971+
* Sets whether {@linkplain PlayerControlView#isAnimationEnabled() controller animation is
972+
* enabled}.
973+
*/
974+
@UnstableApi
975+
public void setControllerAnimationEnabled(boolean animationEnabled) {
976+
Assertions.checkStateNotNull(controller);
977+
controller.setAnimationEnabled(animationEnabled);
978+
}
979+
970980
/**
971981
* Sets the {@link PlayerControlView.VisibilityListener}.
972982
*

0 commit comments

Comments
 (0)