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

Commit 94e02537 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "AudioService: suppress superfluous volume changed intents"

parents 1268ff29 a8728c99
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -5855,12 +5855,14 @@ public class AudioService extends IAudioService.Stub
                            caller);
                }
                // fire changed intents for all streams
                if (index != oldIndex) {
                    mVolumeChanged.putExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, index);
                    mVolumeChanged.putExtra(AudioManager.EXTRA_PREV_VOLUME_STREAM_VALUE, oldIndex);
                    mVolumeChanged.putExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE_ALIAS,
                            mStreamVolumeAlias[mStreamType]);
                    sendBroadcastToAll(mVolumeChanged);
                }
            }
            return changed;
        }