mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-03-07 04:47:40 +01:00
set the MANUAL refreshing flag at manual caldav sync
This commit is contained in:
parent
ec02fb162e
commit
b94ed6d07c
@ -224,7 +224,10 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
||||
toast(R.string.refreshing)
|
||||
val uri = CalendarContract.Calendars.CONTENT_URI
|
||||
contentResolver.registerContentObserver(uri, false, calDAVSyncObserver)
|
||||
ContentResolver.requestSync(null, uri.authority, Bundle())
|
||||
Bundle().apply {
|
||||
putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true)
|
||||
ContentResolver.requestSync(null, uri.authority, this)
|
||||
}
|
||||
}
|
||||
|
||||
private val calDAVSyncObserver = object : ContentObserver(Handler()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user