playback: fix headset focus autoplay issue

Fix an issue where headset focus would result in unexpected playback
whenever the service started.

AudioManager.ACTION_HEADSET_PLUG seems to always fire when the initial
BroadcastReceiver is set up, which results in a weird bug where if a
wired headset is connected while PlaybackService is started, playback
will start immediately, which was not user friendly.

I fear that this may result in an edge case that results in headset
focus not firing in an unrelated situation, which in that case I would
be forced to remove headset autoplay entirely (or at least relegate it
to a quirk option).
This commit is contained in:
OxygenCobalt
2022-03-03 18:47:55 -07:00
parent 1e39ceb9fc
commit 6d003c308b
8 changed files with 20 additions and 8 deletions
+1
View File
@@ -15,6 +15,7 @@ from the system theme was used [#80]
- Fixed music loading failure that would occur when certain paths were parsed [#84]
- Fixed incorrect track numbers when the tag was formatted as NN/TT [#88]
- Fixed years deliberately set as "0" showing up as "No Date"
- Fixed headset management unexpectedly starting audio when the app initially opens
#### What's Changed
- All cover art is now cropped to a 1:1 aspect ratio