summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/android/calendar/widget/CalendarAppWidgetProvider.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/calendar/widget/CalendarAppWidgetProvider.java b/src/com/android/calendar/widget/CalendarAppWidgetProvider.java
index 2864d47a..3a69efd3 100644
--- a/src/com/android/calendar/widget/CalendarAppWidgetProvider.java
+++ b/src/com/android/calendar/widget/CalendarAppWidgetProvider.java
@@ -64,11 +64,11 @@ public class CalendarAppWidgetProvider extends AppWidgetProvider {
performUpdate(context, appWidgetManager,
appWidgetManager.getAppWidgetIds(getComponentName(context)),
null /* no eventIds */);
- } else if (action.equals(Intent.ACTION_PROVIDER_CHANGED)
+ } else if (action != null && (action.equals(Intent.ACTION_PROVIDER_CHANGED)
|| action.equals(Intent.ACTION_TIME_CHANGED)
|| action.equals(Intent.ACTION_TIMEZONE_CHANGED)
|| action.equals(Intent.ACTION_DATE_CHANGED)
- || action.equals(Utils.getWidgetScheduledUpdateAction(context))) {
+ || action.equals(Utils.getWidgetScheduledUpdateAction(context)))) {
Intent service = new Intent(context, CalendarAppWidgetService.class);
context.startService(service);
} else {