fix(bug):Does not allow other apps to resume audio playback after announcing the next step
Description
Cardinal doesn't allow other apps to resume audio playback after announcing the next step
the bug I report happens only when I mute the voice for direction
- despite being turned off, the app stop the music/podcast in background when there is something to say
- and it never resume the music/podcast
Screenshots
Technical details
Due to Ferrostar default implementation of TTS and Audio Manager it was not handling requestFocus and abandonFocus correctly for Audio Manager
Tests
While playing music or podcast in background use the Map for navigation and when next step is announced it should take the focus. After announcement finished background music or podcast should played normally. Tested with Spotify for music and AntennaPod for podcast.
Issues
10 commandments of code review
Edited by Mitul Sheth