Skip to content

Commit

Permalink
Change type of setCustomLayout in MediaSession.resultBuilder to List
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 600801528
(cherry picked from commit 1f78aa5)
  • Loading branch information
siroberts authored and SheenaChhabra committed Jan 25, 2024
1 parent 236287a commit 193cb14
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1651,9 +1651,8 @@ public AcceptedResultBuilder setAvailablePlayerCommands(
* session commands}.
*/
@CanIgnoreReturnValue
public AcceptedResultBuilder setCustomLayout(
@Nullable ImmutableList<CommandButton> customLayout) {
this.customLayout = customLayout;
public AcceptedResultBuilder setCustomLayout(@Nullable List<CommandButton> customLayout) {
this.customLayout = customLayout == null ? null : ImmutableList.copyOf(customLayout);
return this;
}

Expand Down

0 comments on commit 193cb14

Please sign in to comment.