Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c80109db authored by Yan Han's avatar Yan Han
Browse files

Fix incorrect return value from getDeviceVolumeBehavior

getDeviceVolumeBehavior may currently return an incorrect volume
behavior if the current behavior is not persisted in settings, and
setDeviceVolumeBehavior was called in the past.

With this change, getDeviceVolumeBehavior will always read the internal
state instead of settings to get the current volume behavior.

This affects a System API used by privileged apps, which may behave
incorrectly as a result.

Bug: 266566375
Test: atest AbsoluteVolumeBehaviorTest
Change-Id: I9fc3699741abe1123706ebf980cdf052566d4d31
parent dbeafc14
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