Fixes for error handling, UI padding, & more (#1759)

## Description
Another collection of small individual fixes that don't warrant a full
PR:
- Better error handling for series and collection detail pages
- Better error handling on Discover search tab
- Fix issues when changing view options on card grid without reloading
the page
- Better error handling when changing the refresh rate or resolution
- Fix some nav drawer items disappearing briefly when restarting the app
- Fix that the discover search row would not clear when the query is
cleared

And some UI tweaks:
- Use consistent padding for the different customize home page sections
- Convert the "Continue watching click behavior" setting from a toggle
to choice dialog (the options & behaviors have not changed)

### Related issues
I think the error handling when changing the refresh rate might help
with #1737

### Testing
Emulator mostly

## Screenshots
N/A, UI changes are minor

## AI or LLM usage
None
This commit is contained in:
Damontecres 2026-07-29 10:21:49 -04:00 • committed by GitHub
parent 2463841663
commit 8bae9c7f23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 149 additions and 96 deletions

View file

@ -218,15 +218,16 @@ sealed interface AppPreference<Pref, T> {
)
val HomeClickToPlay =
AppSwitchPreference<AppPreferences>(
AppChoicePreference<AppPreferences, Boolean>(
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,
displayValues = R.array.home_click_to_play_options,
indexToValue = { it != 0 },
valueToIndex = { if (it) 1 else 0 },
)
val PlayThemeMusic =