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

Commit 3caba517 authored by Justin Koh's avatar Justin Koh
Browse files

Broadcast mastervolume regardless of change.

Broadcast mastervolume intents regardless of whether the system changed the
volume. This fixes the bug where the volume LEDs stop getting updates.

TESTED = runs on Tungsten.

Change-Id: Id363da3f825934fd7785ed3d3e436f74e657b7e6
parent 5789537c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -812,8 +812,9 @@ public class AudioService extends IAudioService.Stub {
                // Post a persist master volume msg
                sendMsg(mAudioHandler, MSG_PERSIST_MASTER_VOLUME, 0, SENDMSG_REPLACE,
                        Math.round(volume * (float)1000.0), 0, null, PERSIST_DELAY);
                sendMasterVolumeUpdate(flags, oldVolume, newVolume);
            }
            // Send the volume update regardless whether there was a change.
            sendMasterVolumeUpdate(flags, oldVolume, newVolume);
        }
    }