Skip to content

Commit

Permalink
Add PlayerView.setControllerAnimationEnabled(boolean)
Browse files Browse the repository at this point in the history
Issue: #1227
PiperOrigin-RevId: 619558900
(cherry picked from commit d684cdb)
  • Loading branch information
icbaker authored and SheenaChhabra committed Mar 27, 2024
1 parent 26ce3f0 commit 4caed3c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libraries/ui/src/main/java/androidx/media3/ui/PlayerView.java
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,16 @@ public void setControllerVisibilityListener(@Nullable ControllerVisibilityListen
}
}

/**
* 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}.
*
Expand Down

0 comments on commit 4caed3c

Please sign in to comment.