Chromium Code Reviews
Description[Media>UI] Don't call onServiceStarted when handling a notification action
There's an issue where when we receive a PAUSE intent fired from media
notification, we still call MediaNotificationManager.onServiceStarted(),
which will update the notification and call Service.startForeground().
When the PAUSE action is executed, we then update the notification again
and call Service.stopForeground(). These two calls are called in a very
short time window so that a race condition in Android will keep the
notification foreground and unswippable.
In this CL, we distinguish start service intents so that we don't update
the notification when receiving an action.
BUG=701731
R=mlamouri@chromium.org
Review-Url: https://codereview.chromium.org/2750973004
Cr-Commit-Position: refs/heads/master@{#457495}
Committed: https://chromium.googlesource.com/chromium/src/+/cba3aa3a044b578b02a8c237f0bde012260fcf9e
Patch Set 1 #
Total comments: 2
Patch Set 2 : added comments #Messages
Total messages: 11 (4 generated)
|