fixing a crash at pull-to-refresh swiping

This commit is contained in:
tibbi 2018-10-25 10:33:07 +02:00
parent 3f3c7631b2
commit 08d77faa91
2 changed files with 5 additions and 2 deletions

View File

@ -42,7 +42,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.2.4'
implementation 'com.simplemobiletools:commons:5.2.6'
implementation 'joda-time:joda-time:2.9.9'
implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'androidx.multidex:multidex:2.0.0'

View File

@ -18,6 +18,7 @@ import androidx.appcompat.widget.SearchView
import androidx.core.view.MenuItemCompat
import com.simplemobiletools.calendar.BuildConfig
import com.simplemobiletools.calendar.R
import com.simplemobiletools.calendar.R.id.*
import com.simplemobiletools.calendar.adapters.EventListAdapter
import com.simplemobiletools.calendar.dialogs.ExportEventsDialog
import com.simplemobiletools.calendar.dialogs.FilterEventTypesDialog
@ -375,7 +376,9 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
if (showCalDAVRefreshToast) {
toast(R.string.refreshing_complete)
}
swipe_refresh_layout.isRefreshing = false
runOnUiThread {
swipe_refresh_layout.isRefreshing = false
}
}
}, CALDAV_SYNC_DELAY)
}