AudioService: RotationHelper.forceUpdate fix
All access to RotationHelper from AudioService must be guarded by a mMonitorRotation if check. Test: atest VtsHalAudioCoreTargetTest Bug: 273800157 Change-Id: I3cb4d30efbdab98d078e68a8ac6a85faee2dd8d9
This commit is contained in:
@@ -1731,7 +1731,9 @@ public class AudioService extends IAudioService.Stub
|
||||
mSpatializerHelper.reset(/* featureEnabled */ mHasSpatializerEffect);
|
||||
|
||||
// Restore rotation information.
|
||||
RotationHelper.forceUpdate();
|
||||
if (mMonitorRotation) {
|
||||
RotationHelper.forceUpdate();
|
||||
}
|
||||
|
||||
onIndicateSystemReady();
|
||||
// indicate the end of reconfiguration phase to audio HAL
|
||||
|
||||
Reference in New Issue
Block a user