summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-11-11 21:26:02 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-11-11 21:26:02 +0000
commit982f7dbf43885cabe4705d2e4941667ed6ed0cd3 (patch)
treea65cd079bf95c1b2c974179f431b980e068b1e30
parentb996c28c90eac486ae81879d6e27b39032d08d5a (diff)
parent39a9ebe5c53026006fc777739ba25b067eb417a8 (diff)
downloadCalendar-android10-mainline-networking-release.tar.gz
Snap for 6001391 from 39a9ebe5c53026006fc777739ba25b067eb417a8 to qt-aml-networking-releaseandroid-mainline-10.0.0_r6android10-mainline-networking-release
Change-Id: I9aa01438df959c93afde48da0470dd020dfb1f09
-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 {