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

Commit 60b48570 authored by Jaewan Kim's avatar Jaewan Kim Committed by Android (Google) Code Review
Browse files

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

parents 899ca732 745e28cb
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