From 7ef8a7021c91f73d746929453e43c4765dc9b90f Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Tue, 26 Jun 2012 18:12:32 +0200 Subject: playbackservice is now only in the foreground while playing --- src/de/podfetcher/service/PlaybackService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/de/podfetcher') 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), -- cgit v1.2.3