From 014f9bc968511cb8e765884f6716d6ba8240b3d8 Mon Sep 17 00:00:00 2001 From: Jeff DeCew Date: Thu, 12 Aug 2021 12:09:38 -0400 Subject: [PATCH] Highlight the channel in settings when tapping "See More" in the "turn off channels" half-sheet. Fixes: 140956160 Test: manual Change-Id: I00d6d1c3a9910882a5cf1b0e29b4d4a54f1ed4f7 --- .../notification/row/ChannelEditorDialogController.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ChannelEditorDialogController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ChannelEditorDialogController.kt index 9bba7effd8247..1cc1dcf3c90bc 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ChannelEditorDialogController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ChannelEditorDialogController.kt @@ -280,7 +280,8 @@ class ChannelEditorDialogController @Inject constructor( @VisibleForTesting fun launchSettings(sender: View) { - onSettingsClickListener?.onClick(sender, null, appUid!!) + val channel = if (providedChannels.size == 1) providedChannels[0] else null + onSettingsClickListener?.onClick(sender, channel, appUid!!) } private fun initDialog() {