From 42be8aa4b7fb1ea55f0da0babd4ecedb269f82b5 Mon Sep 17 00:00:00 2001 From: Steve Elliott Date: Thu, 24 Sep 2020 11:54:42 -0400 Subject: [PATCH] Open Conversation settings when tapping assoc header Fixes: 168860405 Test: manual, atest Change-Id: I0919d06979fec3732146cc3286363eed443bb33d Merged-In: I0919d06979fec3732146cc3286363eed443bb33d --- .../notification/stack/NotificationSectionsManager.kt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationSectionsManager.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationSectionsManager.kt index ff7793d506fd1..4699ace90bd34 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationSectionsManager.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationSectionsManager.kt @@ -167,7 +167,7 @@ class NotificationSectionsManager @Inject internal constructor( peopleHubSubscription = null peopleHeaderView = reinflateView(peopleHeaderView, layoutInflater, R.layout.people_strip) .apply { - setOnHeaderClickListener(View.OnClickListener { onGentleHeaderClick() }) + setOnHeaderClickListener(View.OnClickListener { onPeopleHeaderClick() }) } if (ENABLE_SNOOZED_CONVERSATION_HUB) { peopleHubSubscription = peopleHubViewAdapter.bindView(peopleHubViewBoundary) @@ -522,6 +522,15 @@ class NotificationSectionsManager @Inject internal constructor( Intent.FLAG_ACTIVITY_SINGLE_TOP) } + private fun onPeopleHeaderClick() { + val intent = Intent(Settings.ACTION_CONVERSATION_SETTINGS) + activityStarter.startActivity( + intent, + true, + true, + Intent.FLAG_ACTIVITY_SINGLE_TOP) + } + private fun onClearGentleNotifsClick(v: View) { onClearSilentNotifsClickListener?.onClick(v) }