Call method to hide swipe refresh indicator on UI thread

This commit is contained in:
cketti 2021-03-01 14:24:07 +01:00
parent 343137f13e
commit eeabd1e98d

View file

@ -226,9 +226,11 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K
accountToRefresh, true, true,
object : SimpleMessagingListener() {
override fun checkMailFinished(context: Context?, account: Account?) {
swipeRefreshLayout.post {
swipeRefreshLayout.isRefreshing = false
}
}
}
)
}
}