Fixed loading wheel.
This commit is contained in:
parent
bc1e911b41
commit
28949a8e17
|
@ -105,6 +105,8 @@ abstract class FunkwhaleFragment<D : Any, A : FunkwhaleAdapter<D, *>> : Fragment
|
||||||
|
|
||||||
repository.fetch(upstreams, size).untilNetwork(lifecycleScope, IO) { data, isCache, _, hasMore ->
|
repository.fetch(upstreams, size).untilNetwork(lifecycleScope, IO) { data, isCache, _, hasMore ->
|
||||||
if (isCache && data.isEmpty()) {
|
if (isCache && data.isEmpty()) {
|
||||||
|
moreLoading = false
|
||||||
|
|
||||||
return@untilNetwork fetch(Repository.Origin.Network.origin)
|
return@untilNetwork fetch(Repository.Origin.Network.origin)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue