Skip to content

Commit f451bdb

Browse files
committed
Do not add Mark as Watched to a live stream.
1 parent 2b41f71 commit f451bdb

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,7 @@ class FeedFragment : BaseStateFragment<FeedState>() {
331331
StreamDialogEntry.start_here_on_background,
332332
StreamDialogEntry.append_playlist,
333333
StreamDialogEntry.share,
334-
StreamDialogEntry.open_in_browser,
335-
StreamDialogEntry.mark_as_watched
334+
StreamDialogEntry.open_in_browser
336335
)
337336
)
338337
} else {
@@ -342,11 +341,15 @@ class FeedFragment : BaseStateFragment<FeedState>() {
342341
StreamDialogEntry.start_here_on_popup,
343342
StreamDialogEntry.append_playlist,
344343
StreamDialogEntry.share,
345-
StreamDialogEntry.open_in_browser,
346-
StreamDialogEntry.mark_as_watched
344+
StreamDialogEntry.open_in_browser
347345
)
348346
)
349347
}
348+
if (item.streamType != StreamType.AUDIO_LIVE_STREAM && item.streamType != StreamType.LIVE_STREAM) {
349+
entries.add(
350+
StreamDialogEntry.mark_as_watched
351+
)
352+
}
350353

351354
StreamDialogEntry.setEnabledEntries(entries)
352355
InfoItemDialog(activity, item, StreamDialogEntry.getCommands(context)) { _, which ->

0 commit comments

Comments
 (0)