diff --git a/libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java b/libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java index 3605fec100..0059a9d99a 100644 --- a/libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java +++ b/libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java @@ -72,10 +72,11 @@ import java.util.concurrent.ExecutionException; *
To make the custom layout and commands work, you need to {@linkplain * MediaSession#setCustomLayout(List) set the custom layout of commands} and add the custom * commands to the available commands when a controller {@linkplain - * MediaSession.Callback#onConnect(MediaSession, ControllerInfo) connects to the session}. - * Controllers that connect after you called {@link MediaSession#setCustomLayout(List)} need the - * custom command set in {@link MediaSession.Callback#onPostConnect(MediaSession, ControllerInfo)} - * also. + * MediaSession.Callback#onConnect(MediaSession, MediaSession.ControllerInfo) connects to the + * session}. Controllers that connect after you called {@link MediaSession#setCustomLayout(List)} + * need the custom command set in {@link MediaSession.Callback#onPostConnect(MediaSession, + * MediaSession.ControllerInfo)} also. * * @param playerCommands The available player commands. * @param customLayout The {@linkplain MediaSession#setCustomLayout(List) custom layout of