fix #231, update widgets more often

This commit is contained in:
tibbi
2017-10-06 18:53:54 +02:00
parent 058d02e774
commit ffb18dfb80
2 changed files with 2 additions and 1 deletions

View File

@@ -239,6 +239,7 @@ fun Context.getSyncedCalDAVCalendars() = CalDAVHandler(this).getCalDAVCalendars(
fun Context.recheckCalDAVCalendars(callback: () -> Unit) { fun Context.recheckCalDAVCalendars(callback: () -> Unit) {
if (config.caldavSync) { if (config.caldavSync) {
CalDAVHandler(this).refreshCalendars(null, callback) CalDAVHandler(this).refreshCalendars(null, callback)
updateWidgets()
} }
} }

View File

@@ -9,4 +9,4 @@
android:minWidth="@dimen/min_widget_width" android:minWidth="@dimen/min_widget_width"
android:previewImage="@drawable/img_widget_monthly_preview" android:previewImage="@drawable/img_widget_monthly_preview"
android:resizeMode="horizontal|vertical" android:resizeMode="horizontal|vertical"
android:updatePeriodMillis="3600000"/> android:updatePeriodMillis="600000"/>