diff options
author | ByteHamster <info@bytehamster.com> | 2020-03-25 16:09:39 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-03-25 16:09:45 +0100 |
commit | a989db586a853852549c638d43c425a3463f901d (patch) | |
tree | c6f2a304e726ae9fa79ca5629b407204be4b2238 /core/src/play | |
parent | 982ce61b3fd2d27f70c6b595544e7dc51f68b752 (diff) | |
download | AntennaPod-a989db586a853852549c638d43c425a3463f901d.zip |
Implemented missing PlaybackController state handling
Diffstat (limited to 'core/src/play')
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceFlavorHelper.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/play/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceFlavorHelper.java b/core/src/play/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceFlavorHelper.java index c32ba2385..31e955017 100644 --- a/core/src/play/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceFlavorHelper.java +++ b/core/src/play/java/de/danoeh/antennapod/core/service/playback/PlaybackServiceFlavorHelper.java @@ -26,9 +26,11 @@ import java.util.concurrent.TimeoutException; import de.danoeh.antennapod.core.cast.CastConsumer; import de.danoeh.antennapod.core.cast.CastManager; import de.danoeh.antennapod.core.cast.DefaultCastConsumer; +import de.danoeh.antennapod.core.event.MessageEvent; import de.danoeh.antennapod.core.feed.MediaType; import de.danoeh.antennapod.core.preferences.UserPreferences; import de.danoeh.antennapod.core.util.NetworkUtils; +import org.greenrobot.eventbus.EventBus; /** * Class intended to work along PlaybackService and provide support for different flavors. @@ -106,7 +108,7 @@ public class PlaybackServiceFlavorHelper { } switch (code) { case RemotePSMP.CAST_ERROR: - callback.sendNotificationBroadcast(PlaybackService.NOTIFICATION_TYPE_SHOW_TOAST, resourceId); + EventBus.getDefault().post(new MessageEvent(context.getString(resourceId))); return true; case RemotePSMP.CAST_ERROR_PRIORITY_HIGH: Toast.makeText(context, resourceId, Toast.LENGTH_SHORT).show(); |