Merge pull request #5177 from k9mail/ui_thread_fix

Call method to hide swipe refresh indicator on UI thread
This commit is contained in:
cketti 2021-03-02 13:36:32 +01:00 committed by GitHub
commit ac1ac93447
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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