avoid rechecking caldav calendars twice at app launch

This commit is contained in:
tibbi 2018-12-04 19:35:19 +01:00
parent 9813ddd6de
commit 06fa70dc16

View file

@ -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
}
}