summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jean-Michel Trivi <jmtrivi@google.com> 2022-11-20 23:28:11 +0000
committer Jean-Michel Trivi <jmtrivi@google.com> 2022-11-22 00:05:03 +0000
commitd291a1e89a40bc1e0e8cd4ec504d30fab4ce1eb4 (patch)
treea89606c51fa62bbbaa0b17a1751b084d079dfde5 /libs/androidfw/StringPool.cpp
parentcfc6ebbd1b67b19ad3a7d96a75b9e74bc4f2a419 (diff)
Fix ACTION_VOLUME_CHANGED behavior
The AudioDeviceVolumeManager.setDeviceVolume() method enables changing the volume on a device that is not the current device for a given stream. But the ACTION_VOLUME_CHANGED intent was fired for any volume update, regardless of the device affected. Since the intent doesn't indicate for which device the volume changed, an application registering for this intent would receive volume updates that don't match the current volume settings. This change disables firing the intent when the device is not the current device for the stream type. Bug: 253118335 Test: atest android.media.audio.cts.AudioManagerTest#testVolumeChangedIntent Change-Id: I31ca413666e9db94b1ed2db20c87effb46753e3e
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions