mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-02-03 04:39:15 +00:00
Do not add Mark as Watched to a live stream.
This commit is contained in:
parent
2b41f710a8
commit
f451bdbfa4
@ -331,8 +331,7 @@ class FeedFragment : BaseStateFragment<FeedState>() {
|
|||||||
StreamDialogEntry.start_here_on_background,
|
StreamDialogEntry.start_here_on_background,
|
||||||
StreamDialogEntry.append_playlist,
|
StreamDialogEntry.append_playlist,
|
||||||
StreamDialogEntry.share,
|
StreamDialogEntry.share,
|
||||||
StreamDialogEntry.open_in_browser,
|
StreamDialogEntry.open_in_browser
|
||||||
StreamDialogEntry.mark_as_watched
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
@ -342,11 +341,15 @@ class FeedFragment : BaseStateFragment<FeedState>() {
|
|||||||
StreamDialogEntry.start_here_on_popup,
|
StreamDialogEntry.start_here_on_popup,
|
||||||
StreamDialogEntry.append_playlist,
|
StreamDialogEntry.append_playlist,
|
||||||
StreamDialogEntry.share,
|
StreamDialogEntry.share,
|
||||||
StreamDialogEntry.open_in_browser,
|
StreamDialogEntry.open_in_browser
|
||||||
StreamDialogEntry.mark_as_watched
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
if (item.streamType != StreamType.AUDIO_LIVE_STREAM && item.streamType != StreamType.LIVE_STREAM) {
|
||||||
|
entries.add(
|
||||||
|
StreamDialogEntry.mark_as_watched
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
StreamDialogEntry.setEnabledEntries(entries)
|
StreamDialogEntry.setEnabledEntries(entries)
|
||||||
InfoItemDialog(activity, item, StreamDialogEntry.getCommands(context)) { _, which ->
|
InfoItemDialog(activity, item, StreamDialogEntry.getCommands(context)) { _, which ->
|
||||||
|
Loading…
Reference in New Issue
Block a user