Add option for click to play continue watching/next up rows (#1405)
## Description Adds an option under Settings->Customize home page->Settings, "Continue watching/Next up click behavior": - When disabled (the default), clicking goes to the item's details page - When enabled, clicking starts playback for the item from its resume position This only applies to the continue watching, next up, or combined rows. All other rows go to the details page no matter what. ### Related issues Closes #1007 ### Testing Emulator ## Screenshots N/A ## AI or LLM usage None
This commit is contained in:
parent
59ccce9d54
commit
87a109c6b6
5 changed files with 44 additions and 1 deletions
|
|
@ -226,6 +226,18 @@ sealed interface AppPreference<Pref, T> {
|
|||
summaryOff = R.string.disabled,
|
||||
)
|
||||
|
||||
val HomeClickToPlay =
|
||||
AppSwitchPreference<AppPreferences>(
|
||||
title = R.string.continue_watching_click_behavior,
|
||||
defaultValue = false,
|
||||
getter = { it.homePagePreferences.clickToPlay },
|
||||
setter = { prefs, value ->
|
||||
prefs.updateHomePagePreferences { clickToPlay = value }
|
||||
},
|
||||
summaryOn = R.string.continue_watching_click_summary_on,
|
||||
summaryOff = R.string.continue_watching_click_summary_off,
|
||||
)
|
||||
|
||||
val PlayThemeMusic =
|
||||
AppChoicePreference<AppPreferences, ThemeSongVolume>(
|
||||
title = R.string.play_theme_music,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue