OSDN Git Service

Eleven: Don't use a sticky service
authorGabriele M <moto.falcon.git@gmail.com>
Sat, 23 Sep 2017 17:06:04 +0000 (19:06 +0200)
committerGabriele M <moto.falcon.git@gmail.com>
Sun, 15 Oct 2017 12:57:34 +0000 (12:57 +0000)
commit119d7744e1ba7c9871ccb82c54b74df5e2065338
treee0e20ed0f68b6074f26f487754690e338a71e0d8
parentd9cbd6b617a83df9e7771a9f59ee22343e16402e
Eleven: Don't use a sticky service

If the user removes Eleven from recents while the service is active
in background with nothing being played, the service is immediately
restarted and the notification re-created, even if there wasn't one.
Since the service doesn't resume music playback when restarted after
being killed because of OOM, there's really no point in using a sticky
service, so just switch to a non-sticky service.

Change-Id: I2a14176e60f535981a27af3536bd89b6d443d20e
src/com/cyanogenmod/eleven/MusicPlaybackService.java