Add content intent to autogroup summary.

Change-Id: I01afb5e9aa7d74844d6640fdc70b39b59ef2093a
Fixes: 28194709
This commit is contained in:
Julia Reynolds
2016-04-15 15:13:54 -04:00
parent b1ebc3b7a0
commit 5bba3e7cd3

View File

@@ -2239,6 +2239,13 @@ public class NotificationManagerService extends SystemService {
.setFlag(Notification.FLAG_GROUP_SUMMARY, true)
.build();
summaryNotification.extras.putAll(extras);
Intent appIntent = getContext().getPackageManager()
.getLaunchIntentForPackage(adjustment.getPackage());
if (appIntent != null) {
summaryNotification.contentIntent = PendingIntent.getActivityAsUser(
getContext(), 0, appIntent, 0, null,
UserHandle.of(adjustedSbn.getUserId()));
}
final StatusBarNotification summarySbn =
new StatusBarNotification(adjustedSbn.getPackageName(),
adjustedSbn.getOpPkg(),