diff --git a/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt b/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt index df7c57823b4..d3f6afeb6a3 100644 --- a/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt +++ b/app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt @@ -349,7 +349,15 @@ class FeedFragment : BaseStateFragment() { ) ) } - if (item.streamType != StreamType.AUDIO_LIVE_STREAM && item.streamType != StreamType.LIVE_STREAM) { + + // show "mark as watched" only when watch history is enabled + val isWatchHistoryEnabled = PreferenceManager + .getDefaultSharedPreferences(context) + .getBoolean(getString(R.string.enable_watch_history_key), false) + if (item.streamType != StreamType.AUDIO_LIVE_STREAM && + item.streamType != StreamType.LIVE_STREAM && + isWatchHistoryEnabled + ) { entries.add( StreamDialogEntry.mark_as_watched )