From d0408f0028ea2572c71fda20f96fd64facdb0341 Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Fri, 14 Oct 2016 10:46:37 -0400 Subject: Fix launching alarm pending intent Launch it as a pending intent. Change-Id: I2adf9347facb9c6fb58cbf8549233c34fcc87350 Fixes: 23909438 --- .../com/android/systemui/statusbar/phone/QuickStatusBarHeader.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStatusBarHeader.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStatusBarHeader.java index 2de832926608..01f3185f5f9f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStatusBarHeader.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStatusBarHeader.java @@ -371,9 +371,7 @@ public class QuickStatusBarHeader extends BaseStatusBarHeader implements } } else if (v == mAlarmStatus && mNextAlarm != null) { PendingIntent showIntent = mNextAlarm.getShowIntent(); - if (showIntent != null && showIntent.isActivity()) { - mActivityStarter.startActivity(showIntent.getIntent(), true /* dismissShade */); - } + mActivityStarter.startPendingIntentDismissingKeyguard(showIntent); } } -- cgit v1.2.3-59-g8ed1b