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

Commit bdaac481 authored by Sungsoo Lim's avatar Sungsoo Lim Committed by Automerger Merge Worker
Browse files

Merge "Do not pass the volume key event to remote sessions" into sc-dev am: f408df63

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15373618

Change-Id: Ibb3cdc53587dbefdc440fe3a2b5771d288865d0e
parents a1c41c46 f408df63
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -325,7 +325,8 @@ class MediaSessionStack {
        int size = records.size();
        for (int i = 0; i < size; i++) {
            MediaSessionRecord record = records.get(i);
            if (record.checkPlaybackActiveState(true)) {
            // Do not send the volume key events to remote sessions.
            if (record.checkPlaybackActiveState(true) && record.isPlaybackTypeLocal()) {
                mCachedVolumeDefault = record;
                return record;
            }