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

Commit 88c09af9 authored by Sungsoo Lim's avatar Sungsoo Lim
Browse files

Do not pass the volume key event to remote sessions

Bug: 194245558
Test: manually
Change-Id: Ic620d0efffdd18242c99eae40fa289bbdfd1b31a
parent 7ee0307a
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;
            }