fixing a crash at pull-to-refresh swiping
This commit is contained in:
parent
3f3c7631b2
commit
08d77faa91
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue