summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2011-08-09 15:44:14 -0700
committerRoboErik <epastern@google.com>2011-08-09 15:44:14 -0700
commitf1416205f0bd6d40ed20c49752fdf8da63258611 (patch)
tree5065d7837b083750cbdf5ab2005004765d1a26ac /AndroidManifest.xml
parente0e2a4fd0f9e1b31c08610cf83176d61cf1b0749 (diff)
downloadandroid_packages_apps_Calendar-f1416205f0bd6d40ed20c49752fdf8da63258611.tar.gz
android_packages_apps_Calendar-f1416205f0bd6d40ed20c49752fdf8da63258611.tar.bz2
android_packages_apps_Calendar-f1416205f0bd6d40ed20c49752fdf8da63258611.zip
b/5104431 Restart widget service when db changes
There is still a 30 second delay due to throttling, but the service will now wake back up and update the widgets if the provider changes after the app has been killed. Change-Id: Id0feda9e1ccc77cc861f6e5bce9924f7eabf615f
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml22
1 files changed, 20 insertions, 2 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 19a91ca4..b63dbb4d 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -170,9 +170,27 @@
<meta-data android:name="android.appwidget.provider" android:resource="@xml/appwidget_info" />
</receiver>
+ <receiver android:name=".widget.CalendarAppWidgetService$CalendarFactory">
+ <intent-filter>
+ <action android:name="android.intent.action.TIMEZONE_CHANGED"/>
+ <action android:name="android.intent.action.DATE_CHANGED"/>
+ <action android:name="android.intent.action.TIME_SET"/>
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.PROVIDER_CHANGED"/>
+ <data android:scheme="content"/>
+ <data android:host="com.android.calendar"/>
+ </intent-filter>
+ <intent-filter>
+ <action android:name="com.android.calendar.APPWIDGET_SCHEDULED_UPDATE"/>
+ <data android:scheme="content"/>
+ <data android:host="com.android.calendar"/>
+ </intent-filter>
+ </receiver>
+
<service android:name=".widget.CalendarAppWidgetService"
- android:permission="android.permission.BIND_REMOTEVIEWS"
- android:exported="false"/>
+ android:permission="android.permission.BIND_REMOTEVIEWS"
+ android:exported="false"/>
<activity android:name="CalendarTests" android:label="Calendar Tests">
<intent-filter>