Fixed reappearing notification

This commit is contained in:
ByteHamster 2019-08-10 17:20:26 +02:00
parent de13f9b564
commit d2084608a6
1 changed files with 2 additions and 0 deletions

View File

@ -483,6 +483,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
}
if (stream && !NetworkUtils.isStreamingAllowed() && !allowStreamThisTime) {
displayStreamingNotAllowedNotification(intent);
writePlaybackPreferencesNoMediaPlaying();
stopService();
return Service.START_NOT_STICKY;
}
@ -866,6 +867,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
.startWhenPrepared(true)
.shouldStream(true)
.getIntent());
writePlaybackPreferencesNoMediaPlaying();
stopService();
return null;
}