Merge "Open Conversation settings when tapping assoc header" into rvc-qpr-dev am: b742bfe901

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12685781

Change-Id: I84d563a6e14cdd2946c3051bed96e3ac201519f5
This commit is contained in:
TreeHugger Robot
2020-09-25 16:29:31 +00:00
committed by Automerger Merge Worker

View File

@@ -167,7 +167,7 @@ class NotificationSectionsManager @Inject internal constructor(
peopleHubSubscription = null peopleHubSubscription = null
peopleHeaderView = reinflateView(peopleHeaderView, layoutInflater, R.layout.people_strip) peopleHeaderView = reinflateView(peopleHeaderView, layoutInflater, R.layout.people_strip)
.apply { .apply {
setOnHeaderClickListener(View.OnClickListener { onGentleHeaderClick() }) setOnHeaderClickListener(View.OnClickListener { onPeopleHeaderClick() })
} }
if (ENABLE_SNOOZED_CONVERSATION_HUB) { if (ENABLE_SNOOZED_CONVERSATION_HUB) {
peopleHubSubscription = peopleHubViewAdapter.bindView(peopleHubViewBoundary) peopleHubSubscription = peopleHubViewAdapter.bindView(peopleHubViewBoundary)
@@ -522,6 +522,15 @@ class NotificationSectionsManager @Inject internal constructor(
Intent.FLAG_ACTIVITY_SINGLE_TOP) 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) { private fun onClearGentleNotifsClick(v: View) {
onClearSilentNotifsClickListener?.onClick(v) onClearSilentNotifsClickListener?.onClick(v)
} }