From 52408f4fb5dab950847aa12e3bea44399ccd0d6e Mon Sep 17 00:00:00 2001 From: Fyodor Kupolov Date: Mon, 17 Aug 2015 16:34:07 -0700 Subject: [PATCH] Make notification content clickable for logout/remove guest Pressing notification content for logout/remove guest notification, should trigger the same action as the button below. Change-Id: I70294b6855e47a67ace71b8232ffc9b320ef8333 --- .../systemui/statusbar/policy/UserSwitcherController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.java index f02f493e20620..1bd8a827e8f5b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.java @@ -427,6 +427,7 @@ public class UserSwitcherController { .setSmallIcon(R.drawable.ic_person) .setContentTitle(mContext.getString(R.string.guest_notification_title)) .setContentText(mContext.getString(R.string.guest_notification_text)) + .setContentIntent(removeGuestPI) .setShowWhen(false) .addAction(R.drawable.ic_delete, mContext.getString(R.string.guest_notification_remove_action), @@ -445,6 +446,7 @@ public class UserSwitcherController { .setSmallIcon(R.drawable.ic_person) .setContentTitle(mContext.getString(R.string.user_logout_notification_title)) .setContentText(mContext.getString(R.string.user_logout_notification_text)) + .setContentIntent(logoutPI) .setShowWhen(false) .addAction(R.drawable.ic_delete, mContext.getString(R.string.user_logout_notification_action),