Do not add Mark as Watched to a live stream.

This commit is contained in:
Nathan Schulzke 2021-07-27 13:26:51 -06:00
parent 2b41f710a8
commit f451bdbfa4
1 changed files with 7 additions and 4 deletions

View File

@ -331,8 +331,7 @@ class FeedFragment : BaseStateFragment<FeedState>() {
StreamDialogEntry.start_here_on_background,
StreamDialogEntry.append_playlist,
StreamDialogEntry.share,
StreamDialogEntry.open_in_browser,
StreamDialogEntry.mark_as_watched
StreamDialogEntry.open_in_browser
)
)
} else {
@ -342,11 +341,15 @@ class FeedFragment : BaseStateFragment<FeedState>() {
StreamDialogEntry.start_here_on_popup,
StreamDialogEntry.append_playlist,
StreamDialogEntry.share,
StreamDialogEntry.open_in_browser,
StreamDialogEntry.mark_as_watched
StreamDialogEntry.open_in_browser
)
)
}
if (item.streamType != StreamType.AUDIO_LIVE_STREAM && item.streamType != StreamType.LIVE_STREAM) {
entries.add(
StreamDialogEntry.mark_as_watched
)
}
StreamDialogEntry.setEnabledEntries(entries)
InfoItemDialog(activity, item, StreamDialogEntry.getCommands(context)) { _, which ->