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

Commit 173b4158 authored by Jaewan Kim's avatar Jaewan Kim Committed by android-build-merger
Browse files

Merge "Don't ignore remote media sessions when sending media key events" into oc-dev am: 60b48570

am: 218396f7

Change-Id: Id4a5dc00ee58d0739b6e681d23c258547e76484e
parents ad5073c7 218396f7
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -219,11 +219,7 @@ class MediaSessionStack {
    private MediaSessionRecord findMediaButtonSession(int uid) {
        MediaSessionRecord mediaButtonSession = null;
        for (MediaSessionRecord session : mSessions) {
            // Since the media buttons come with the headset/speaker, users will expect changes in
            // the headset/speaker when they press media buttons. So only consider local playback
            // for the media button session.
            if (uid == session.getUid()
                    && session.getPlaybackType() == PlaybackInfo.PLAYBACK_TYPE_LOCAL) {
            if (uid == session.getUid()) {
                if (session.isPlaybackActive() ==
                        mAudioPlaybackMonitor.isPlaybackActive(session.getUid())) {
                    // If there's a media session whose PlaybackState matches