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

Skip to content
Commit fd3ec641 authored by Hall Liu's avatar Hall Liu
Browse files

Properly restart ringtone when BT device connected

A previous change stoppped the ringer from starting after a HFP device
connects when audio focus was previously acquired. This behavior is
partially incorrect, since sometimes we can acquire audio focus without
starting a ringtone. The result of the incorrect behavior is that an
in-band ringtone will fail to play over the HFP device if the device is
on vibrate.

The fix here is to gate the second try on both acquisition of audio
focus and starting the ringtone.

Test: unit tests, manual
Fixes: 160109967
Change-Id: I6c184795b29e09765bfdba300f83cb9471f30751
parent b5f02086
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