diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-11-05 20:20:23 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-11-05 20:20:23 +0000 |
commit | 537758eb5232fdc0dd1159ccf5d44ba245815c8a (patch) | |
tree | a65cd079bf95c1b2c974179f431b980e068b1e30 | |
parent | 623f47500c1fd590e304e1170ddd02f8db713de4 (diff) | |
parent | b6db3e07a4e15feef0c82712ce3924180bbf704b (diff) | |
download | Calendar-537758eb5232fdc0dd1159ccf5d44ba245815c8a.tar.gz |
Merge "AOSP/Calendar - Fix crash bug when null action is sent to com.android.calendar/.widget.CalendarAppWidgetProvider."
-rw-r--r-- | src/com/android/calendar/widget/CalendarAppWidgetProvider.java | 4 |
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 { |