Skip to content

Commit 3caba51

Browse files
committed
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
1 parent 5789537 commit 3caba51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

media/java/android/media/AudioService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,9 @@ private void doSetMasterVolume(float volume, int flags) {
812812
// Post a persist master volume msg
813813
sendMsg(mAudioHandler, MSG_PERSIST_MASTER_VOLUME, 0, SENDMSG_REPLACE,
814814
Math.round(volume * (float)1000.0), 0, null, PERSIST_DELAY);
815-
sendMasterVolumeUpdate(flags, oldVolume, newVolume);
816815
}
816+
// Send the volume update regardless whether there was a change.
817+
sendMasterVolumeUpdate(flags, oldVolume, newVolume);
817818
}
818819
}
819820

0 commit comments

Comments
 (0)