Several minor fixes (#1505)

## Description
Collecting some minor fixes together:

- Adds error handling when submitting a discover/seerr request,
previously there was no visual feedback if the request failed
- Fix MpvPlayer reporting that it was buffering forever
- Fix discover results row on regular search page not being clickable
- Fix focus loss when returning to movie details after playback advanced
enough to switch the button from Play to Resume
- Fix some focus issues when returning to the TV guide page

### Related issues
Related to #1503 for MPV
Fixes #1500
Fixes #1508
Fixes #1501

### Testing
Emulator & nvidia shield

## Screenshots
N/A

## AI or LLM usage
None
This commit is contained in:
Damontecres 2026-06-03 20:47:07 -04:00 • committed by GitHub
parent a1b372667b
commit a0869ca6e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 103 additions and 66 deletions

View file

@ -628,12 +628,11 @@ class MpvPlayer(
MPVProperty.PAUSED_FOR_CACHE -> {
Timber.v("paused-for-cache %s", value)
val newState = if (value) STATE_BUFFERING else STATE_READY
playbackState.update {
it.copy(
state = if (value) STATE_BUFFERING else it.state,
)
it.copy(state = newState)
}
notifyListeners(EVENT_PLAYBACK_STATE_CHANGED) { onPlaybackStateChanged(playbackState.load().state) }
notifyListeners(EVENT_PLAYBACK_STATE_CHANGED) { onPlaybackStateChanged(newState) }
}
}
}
@ -842,6 +841,7 @@ class MpvPlayer(
)
}
notifyListeners(EVENT_IS_LOADING_CHANGED) { onIsLoadingChanged(true) }
notifyListeners(EVENT_PLAYBACK_STATE_CHANGED) { onPlaybackStateChanged(STATE_READY) }
val url =
media.mediaItem.localConfiguration
?.uri