Updates to StreamActionButton for style.

This commit is contained in:
Doug Smith 2019-10-20 01:06:18 -04:00
parent 0bc3294ca4
commit bfa160ace3

View File

@ -10,13 +10,13 @@ import de.danoeh.antennapod.core.feed.FeedItem;
import de.danoeh.antennapod.core.feed.FeedMedia;
import de.danoeh.antennapod.core.storage.DBTasks;
import de.danoeh.antennapod.core.util.IntentUtils;
import de.danoeh.antennapod.core.util.NetworkUtils;
import de.danoeh.antennapod.core.util.playback.PlaybackServiceStarter;
import static de.danoeh.antennapod.core.service.playback.PlaybackService.ACTION_PAUSE_PLAY_CURRENT_EPISODE;
import static de.danoeh.antennapod.core.service.playback.PlaybackService.ACTION_RESUME_PLAY_CURRENT_EPISODE;
public class StreamActionButton extends ItemActionButton{
public class StreamActionButton extends ItemActionButton {
StreamActionButton(FeedItem item) {
super(item);
}
@ -57,7 +57,8 @@ public class StreamActionButton extends ItemActionButton{
.shouldStream(true)
.start();
String pauseOrResume = media.isCurrentlyPlaying() ? ACTION_PAUSE_PLAY_CURRENT_EPISODE : ACTION_RESUME_PLAY_CURRENT_EPISODE;
String pauseOrResume = media.isCurrentlyPlaying()
? ACTION_PAUSE_PLAY_CURRENT_EPISODE : ACTION_RESUME_PLAY_CURRENT_EPISODE;
IntentUtils.sendLocalBroadcast(context, pauseOrResume);
}
}