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

Skip to content
Commit b5702e6c authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Łukasz Rymanowski (xWF)
Browse files

vc: Fix handling volume setup after reconnect

Before the patch, after reconnection the Android always tried to set the
volume which is present on the earbuds dispite the Persistent Flag.
However, there was a use case, where value was not set properly  i.e
when after reconnection, Phone had aleady a valid cache volume.

To fix it properly there is a need to provide Persistent Flag to the
Java layer, so Android can make a proper decision.

With this patch we make sure volume of the remote device always will be
applied to the system after reconnection unless Volume Persist Flag is
set to Reset (0x00) and volume on the remote device is 0.

Bug: 352647510
Flag: Exempt, corner case, regressions verified with unit tests, new test added
Test: atest bluetooth_vc_test VolumeControlServiceTest
VolumeControlNativeTest

Change-Id: I30d36e188574a7ab5c12ee19a0587030fd793c25
parent b5caa4c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment