Skip to content
Commit 169ee398 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioService: setDeviceVolume no-op when for current device

Disregard device volume commands when addressed for the current
device for that stream type. Current use of this API is
to control unused/disconnected devices, so doing this prevents
- adjusting the volume outside of the legacy volume APIs
- prevents feedback loop is the user is using
 ACTION_VOLUME_CHANGED to react to volume changes, and is
 issuing volume commands on a device in use.

Bug: 267412093
Bug: 271473257
Test: dock/undock
Change-Id: Ibc14d28ad9a881ea41c619815f32cfde1f1b7885
parent ed967437
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment