mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
set the MANUAL refreshing flag at manual caldav sync
This commit is contained in:
@ -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()) {
|
||||
|
Reference in New Issue
Block a user