Fix Android Q notification progress state
Description
Update the MediaSession
when a progress change has been initiated by the user (either from the app or from the Android Q notification)
Motivation and Context
If the MediaSession
is not explicitly updated when the user seeks in an audio, the notification progress bar is not updated to reflect the time change.
How Has This Been Tested?
Android emulator API 29
Screenshots / GIFs (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Enhancement (non-breaking change which cleans up / improves existing functionality) -
Breaking change (fix or feature that would cause existing functionality to change)
Checklist
-
I have read the CONTRIBUTING section of the README document.
Resolves
Fixes: #848 (closed)