diff options
author | Mason Tang <masontang@google.com> | 2010-07-08 16:40:39 -0700 |
---|---|---|
committer | Mason Tang <masontang@google.com> | 2010-07-08 17:00:32 -0700 |
commit | c9656c9e42d9bb640688648b9dfe8d9f4e16b47d (patch) | |
tree | 2932402a19fc79e6a917bd0d0cc397156efa9431 /src | |
parent | ccf4a12bc3b25c46d592d3f9116f52751b96010c (diff) | |
download | android_packages_apps_Calendar-c9656c9e42d9bb640688648b9dfe8d9f4e16b47d.tar.gz android_packages_apps_Calendar-c9656c9e42d9bb640688648b9dfe8d9f4e16b47d.tar.bz2 android_packages_apps_Calendar-c9656c9e42d9bb640688648b9dfe8d9f4e16b47d.zip |
Fix the incomplete change to support immersive mode notifications
- The previous commit to add this support in was slightly broken...
Change-Id: I75479c5b2e681d6598b72d7edaff0ba7a3ae5839
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/calendar/AlertService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/calendar/AlertService.java b/src/com/android/calendar/AlertService.java index ec943897..8e620e4b 100644 --- a/src/com/android/calendar/AlertService.java +++ b/src/com/android/calendar/AlertService.java @@ -275,7 +275,8 @@ public class AlertService extends Service { boolean quietUpdate, boolean highPriority) { if (DEBUG) { Log.d(TAG, "###### creating new alarm notification, numReminders: " + numReminders - + (quietUpdate ? " QUIET" : " loud")); + + (quietUpdate ? " QUIET" : " loud") + + (highPriority ? " high-priority" : "")); } NotificationManager nm = @@ -287,7 +288,7 @@ public class AlertService extends Service { } Notification notification = AlertReceiver.makeNewAlertNotification(context, eventName, - location, numReminders); + location, numReminders, highPriority); notification.defaults |= Notification.DEFAULT_LIGHTS; // Quietly update notification bar. Nothing new. Maybe something just got deleted. |