Skip to content

Commit

Permalink
Hide actions without full implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Oct 5, 2024
1 parent 9ee77d1 commit 48cdeda
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Check warning

Code scanning / detekt

Line detected, which is longer than the defined maximum line length in the code style. Warning

Line detected, which is longer than the defined maximum line length in the code style.
* lagg.
* lagg. The skip action will only execute when playing over the segment start, not when seeking into the segment block.

Check warning

Code scanning / detekt

Line detected, which is longer than the defined maximum line length in the code style. Warning

Line detected, which is longer than the defined maximum line length in the code style.
*/
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

Check warning

Code scanning / detekt

Line detected, which is longer than the defined maximum line length in the code style. Warning

Line detected, which is longer than the defined maximum line length in the code style.
* 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

Check warning

Code scanning / detekt

Line detected, which is longer than the defined maximum line length in the code style. Warning

Line detected, which is longer than the defined maximum line length in the code style.
* 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

Check warning

Code scanning / detekt

Line detected, which is longer than the defined maximum line length in the code style. Warning

Line detected, which is longer than the defined maximum line length in the code style.
* 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),
}

0 comments on commit 48cdeda

Please sign in to comment.