Browse Source

Fixed loading wheel.

housekeeping/remove-warnings
Antoine POPINEAU 4 years ago
parent
commit
28949a8e17
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
  1. 2
      app/src/main/java/com/github/apognu/otter/fragments/FunkwhaleFragment.kt

2
app/src/main/java/com/github/apognu/otter/fragments/FunkwhaleFragment.kt

@ -105,6 +105,8 @@ abstract class FunkwhaleFragment<D : Any, A : FunkwhaleAdapter<D, *>> : Fragment @@ -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)
}

Loading…
Cancel
Save