mirror of
https://github.com/apognu/otter
synced 2025-03-02 08:57:46 +01:00
Fix IO thread performing UI task on some occasion (#59).
This commit is contained in:
parent
5d397ab1fe
commit
4b2cf10e78
@ -101,7 +101,9 @@ abstract class FunkwhaleFragment<D : Any, A : FunkwhaleAdapter<D, *>> : Fragment
|
||||
var first = size == 0
|
||||
|
||||
if (!moreLoading && upstreams == Repository.Origin.Network.origin) {
|
||||
swiper?.isRefreshing = true
|
||||
lifecycleScope.launch(Main) {
|
||||
swiper?.isRefreshing = true
|
||||
}
|
||||
}
|
||||
|
||||
repository.fetch(upstreams, size).untilNetwork(lifecycleScope, IO) { data, isCache, page, hasMore ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user