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

Skip to content
Commit 20ef4025 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun Committed by Jack He
Browse files

Do not reset battery level when HFP is disconnected

The battery level was reset when HFP was disconnected.

It was okay when HFP was the only way to get the battery level
but we are getting the battery level from the
battery service (BAS) as well so we need to
check if we should reset or not.

This change checks the condition and does not reset the
battery level if it is still valid information.

It also adds tests to ensure the functionality.

Tag: #feature
Bug: 269969529
Test: atest BluetoothInstrumentationTests and manually tested with LE HS and HFP
Change-Id: Iac16347045cac4201f0cd2132e51336159f03fed
parent e7dc1c41
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