playbackservice is now only in the foreground while playing

This commit is contained in:
daniel oeh 2012-06-26 18:12:32 +02:00
parent 81295bc07f
commit 7ef8a7021c
1 changed files with 1 additions and 1 deletions

View File

@ -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),