feat: add pull-to-refresh gesture to HomeScreen

Wrap HomeContent with PullToRefreshBox to allow refreshing library,
continue watching, and next up sections by pulling down. Also fix
refreshHomeData to suspend until loading completes so the refresh
indicator dismisses properly.
This commit is contained in:
2026-03-03 21:18:50 +01:00
parent cc972e0e89
commit 5ca127434d
4 changed files with 38 additions and 2 deletions

View File

@@ -297,15 +297,18 @@ class InMemoryAppContentRepository @Inject constructor(
if (!isOnline) return
if(loadJob?.isActive == true) {
loadJob?.join()
return
}
loadJob = scope.launch {
val job = scope.launch {
loadLibraries()
loadContinueWatching()
loadNextUp()
loadLatestLibraryContent()
persistHomeCache()
}
loadJob = job
job.join()
}
private suspend fun serverUrl(): String {