Add lock when adjusting suggested stream volume.
When adjusting suggested stream volume, we may set the stream type according to mVolumeControlStream, which could be changed by other thread. To avoid getting stream type -1, which cause crash when checking stream type, add a lock request in adjustSuggestedStreamVolume. Bug: 71333271 Test: Manually test Change-Id: If98f50f4f2389818b7ac3b0f33bdc7e27f3ad3f8
Loading
Please register or sign in to comment