From 48cdedae8b6e7bf9bd2e3c4661cf3a07457d87c3 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Sat, 5 Oct 2024 22:24:41 +0200 Subject: [PATCH] Hide actions without full implementation. --- .../ui/playback/segment/MediaSegmentAction.kt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/jellyfin/androidtv/ui/playback/segment/MediaSegmentAction.kt b/app/src/main/java/org/jellyfin/androidtv/ui/playback/segment/MediaSegmentAction.kt index 5144ffdb38..b324c06af6 100644 --- a/app/src/main/java/org/jellyfin/androidtv/ui/playback/segment/MediaSegmentAction.kt +++ b/app/src/main/java/org/jellyfin/androidtv/ui/playback/segment/MediaSegmentAction.kt @@ -5,6 +5,7 @@ import org.jellyfin.preference.PreferenceEnum enum class MediaSegmentAction( override val nameRes: Int, + override val hidden: Boolean = false, ) : PreferenceEnum { /** * Don't take any action for this segment. @@ -13,19 +14,24 @@ enum class MediaSegmentAction( /** * Seek to the end of this segment (endTicks). If the duration of this segment is shorter than 1 second it should do nothing to avoid - * lagg. + * lagg. The skip action will only execute when playing over the segment start, not when seeking into the segment block. */ SKIP(R.string.segment_action_skip), /** * Ask the user if they want to skip this segment. When the user agrees this behaves like [SKIP]. Confirmation should only be asked for * segments with a duration of at least 3 seconds to avoid UI flickering. + * + * @todo Hidden until fully implemented. */ - ASK_TO_SKIP(R.string.segment_action_ask_to_skip), + ASK_TO_SKIP(R.string.segment_action_ask_to_skip, hidden = true), /** * Mute the audio volume until the end of this segment. The volume level should be restored to the state when this segment started. If - * the volume is manually changed by the user during this segment it should no longer restore volume itself. + * the volume is manually changed by the user during this segment it should no longer restore volume itself. The mute action will always + * execute when the segment block is active. + * + * @todo Hidden until fully implemented. */ - MUTE(R.string.segment_action_mute), + MUTE(R.string.segment_action_mute, hidden = true), }