Merge pull request #5177 from k9mail/ui_thread_fix
Call method to hide swipe refresh indicator on UI thread
This commit is contained in:
commit
ac1ac93447
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue