Change type of setCustomLayout in MediaSession.resultBuilder to List

PiperOrigin-RevId: 600801528
(cherry picked from commit 1f78aa5b2a)
This commit is contained in:
siroberts 2024-01-23 08:44:29 -08:00 committed by SheenaChhabra
parent 236287a513
commit 193cb143ff

View file

@ -1651,9 +1651,8 @@ public class MediaSession {
* session commands}. * session commands}.
*/ */
@CanIgnoreReturnValue @CanIgnoreReturnValue
public AcceptedResultBuilder setCustomLayout( public AcceptedResultBuilder setCustomLayout(@Nullable List<CommandButton> customLayout) {
@Nullable ImmutableList<CommandButton> customLayout) { this.customLayout = customLayout == null ? null : ImmutableList.copyOf(customLayout);
this.customLayout = customLayout;
return this; return this;
} }