Remove playing notification when deleting currently playing episode (#5628)
This commit is contained in:
parent
c4aba03132
commit
3656ddcf36
|
@ -6,6 +6,7 @@ import android.util.Log;
|
|||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.core.app.NotificationManagerCompat;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
|
||||
|
@ -128,6 +129,9 @@ public class DBWriter {
|
|||
if (media.getId() == PlaybackPreferences.getCurrentlyPlayingFeedMediaId()) {
|
||||
PlaybackPreferences.writeNoMediaPlaying();
|
||||
IntentUtils.sendLocalBroadcast(context, PlaybackService.ACTION_SHUTDOWN_PLAYBACK_SERVICE);
|
||||
|
||||
NotificationManagerCompat nm = NotificationManagerCompat.from(context);
|
||||
nm.cancel(R.id.notification_playing);
|
||||
}
|
||||
|
||||
// Gpodder: queue delete action for synchronization
|
||||
|
|
Loading…
Reference in New Issue