diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-06-26 18:12:32 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-06-26 18:12:32 +0200 |
commit | 7ef8a7021c91f73d746929453e43c4765dc9b90f (patch) | |
tree | af3dd4c4a9cc7c30bde5b185ecaa37fad3593491 /src/de/podfetcher/service | |
parent | 81295bc07f7c558e18c02b03421bdbfd3d3c28c6 (diff) | |
download | AntennaPod-7ef8a7021c91f73d746929453e43c4765dc9b90f.zip |
playbackservice is now only in the foreground while playing
Diffstat (limited to 'src/de/podfetcher/service')
-rw-r--r-- | src/de/podfetcher/service/PlaybackService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/podfetcher/service/PlaybackService.java b/src/de/podfetcher/service/PlaybackService.java index 3adbc350b..5041a2228 100644 --- a/src/de/podfetcher/service/PlaybackService.java +++ b/src/de/podfetcher/service/PlaybackService.java @@ -196,7 +196,6 @@ public class PlaybackService extends Service { Log.w(TAG, "Something went wrong. Shutting down..."); stopSelf(); } - setupNotification(); return Service.START_STICKY; } @@ -305,6 +304,7 @@ public class PlaybackService extends Service { sendBroadcast(new Intent(ACTION_PLAYER_STATUS_CHANGED)); } + /** Prepares notification and starts the service in the foreground. */ private void setupNotification() { PendingIntent pIntent = PendingIntent.getActivity(this, 0, new Intent( this, MediaplayerActivity.class), |