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

Skip to content
Commit dcb00430 authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

VolumeControl: Do not set the same volume level twice

Devices may connect or be discovered as a new group
memeber after the streaming was already started, or
services can be connected in a different order each
time. The newly connected device may need additional
volume level corrections. Some of these volume changes
may already be pending on the native layer due to
previous group API calls, while Java has not yet been
notified about all the native stack events.

This change eliminates any additional volume state
changes if the volume is already set to the desired
level but the Java layer did not know that, or
when the volume changing GATT operation with same
parameters is already on the operation queue.

Bug: 248969553
Bug: 248915809
Tag: #feature
Test: atest --host bluetooth_vc_test --no-bazel-mode
Change-Id: Ic7ad61a8f8be6a48bb09aa3b07059e8f1abbd528
parent e8e7f2e0
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