Fixed loading wheel.

This commit is contained in:
Antoine POPINEAU 2020-07-10 20:37:28 +02:00
parent bc1e911b41
commit 28949a8e17
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ abstract class FunkwhaleFragment<D : Any, A : FunkwhaleAdapter<D, *>> : Fragment
repository.fetch(upstreams, size).untilNetwork(lifecycleScope, IO) { data, isCache, _, hasMore ->
if (isCache && data.isEmpty()) {
moreLoading = false
return@untilNetwork fetch(Repository.Origin.Network.origin)
}