Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42be8aa4 authored by Steve Elliott's avatar Steve Elliott
Browse files

Open Conversation settings when tapping assoc header

Fixes: 168860405
Test: manual, atest
Change-Id: I0919d06979fec3732146cc3286363eed443bb33d
Merged-In: I0919d06979fec3732146cc3286363eed443bb33d
parent a4d6ee2b
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -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)
    }