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

Commit df301d4a authored by Danesh M's avatar Danesh M
Browse files

VolumeDialogController : Ignore inactive stream volume updates

CYNGNOS-2259

Change-Id: I87eee4b76c2618b5bbe29385b1cd9b431367e239
parent 14b45bc6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -974,6 +974,13 @@ public class VolumeDialogController {

        @Override
        public void onRemoteVolumeChanged(Token token, int flags) {
            // If an inactive session changed the remoteVolume, bail
            // since we don't have any active streams to update
            if (!mRemoteStreams.containsKey(token)) {
                Log.i(TAG, "onRemoteVolumeChanged called on inactive" +
                        "stream. Ignoring");
                return;
            }
            final int stream = mRemoteStreams.get(token);
            final boolean showUI = (flags & AudioManager.FLAG_SHOW_UI) != 0;
            boolean changed = updateActiveStreamW(stream);