Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15fc0504 authored by Jaewan Kim's avatar Jaewan Kim
Browse files

MediaSession2: Remove onPlaylistChanged() without metadata

Bug: 74174728
Test: Run CTS with MediaComponents/runcts.sh
Change-Id: I84495aa19bc03009c81cdefdf8e65fbff4b7bcb6
parent ed875ea1
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -138,23 +138,6 @@ public class MediaController2 implements AutoCloseable {
                @NonNull Command command, @Nullable Bundle args,
                @Nullable ResultReceiver receiver) { }

        /**
         * Called when the playlist is changed.
         * <p>
         * If the previously playing media item is gone, you should invalidate previous playback
         * information and wait for later callbacks.
         *
         * @param controller the controller for this event
         * @param playlist A new playlist set by the session.
         * @see #onPositionChanged(MediaController2, long, long)
         * @see #onBufferedPositionChanged(MediaController2, long)
         * @see #onCurrentMediaItemChanged(MediaController2, MediaItem2)
         * @hide
         */
        // TODO(jaewan): Remove (b/74174728)
        public void onPlaylistChanged(@NonNull MediaController2 controller,
                @NonNull List<MediaItem2> playlist) { }

        /**
         * Called when the player state is changed.
         *