avoid rechecking caldav calendars twice at app launch
This commit is contained in:
parent
9813ddd6de
commit
06fa70dc16
1 changed files with 6 additions and 8 deletions
|
@ -372,14 +372,12 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||
}
|
||||
|
||||
private fun calDAVChanged() {
|
||||
recheckCalDAVCalendars {
|
||||
refreshViewPager()
|
||||
if (showCalDAVRefreshToast) {
|
||||
toast(R.string.refreshing_complete)
|
||||
}
|
||||
runOnUiThread {
|
||||
swipe_refresh_layout.isRefreshing = false
|
||||
}
|
||||
refreshViewPager()
|
||||
if (showCalDAVRefreshToast) {
|
||||
toast(R.string.refreshing_complete)
|
||||
}
|
||||
runOnUiThread {
|
||||
swipe_refresh_layout.isRefreshing = false
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue