mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-12-01 12:31:45 +00:00
playbackservice is now only in the foreground while playing
This commit is contained in:
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user