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
This commit is contained in:
Fyodor Kupolov
2015-08-17 16:34:07 -07:00
parent bead6bcc61
commit 52408f4fb5

View File

@@ -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),