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

Commit 518a2f9a authored by Jaewan Kim's avatar Jaewan Kim
Browse files

MediaSession2: Change controller's behavior when connected

This stops calling
MediaController2.ControllerCallback.onPlaybackStateChanged() when the
controller is connected.

This is the preliminary step towards sending session's current values
to a controller when it's connected.

Bug: 72547163
Test: Run all tests once
Change-Id: I4b5b2ec008500cc71679883792b0ef44f1c24aad
parent fbbd7583
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ public class MediaController2 implements AutoCloseable {
        public void onPlaylistChanged(@NonNull List<MediaItem2> playlist) { }

        /**
         * Called when the playback state is changed, or connection success.
         * Called when the playback state is changed.
         *
         * @param state latest playback state
         */