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

This commit is contained in:
Sungsoo Lim
2021-07-27 23:09:56 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}