From 92de36d383c5ce86d91c5cc8f70ca54005bcee85 Mon Sep 17 00:00:00 2001 From: burakov Date: Fri, 21 Jun 2024 16:31:13 +0000 Subject: [bc25] Fix notifications not being rendered on Dual Shade. The bug was caused due to a recent change in NSSL that requires positioning a `NotificationStackCutoffGuideline` composable which communicates the bottom rendering boundary to the NSSL. Bug: 340553529 Bug: 348641274 Test: Manually verified on a device by opening and closing the notifications dual shade. Test: Existing unit tests still pass. Flag: com.android.systemui.dual_shade Change-Id: I03cc302c2f89f14e6a8724f49cfb93fb4eab3b16 --- .../systemui/notifications/ui/composable/NotificationsShadeScene.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/NotificationsShadeScene.kt b/packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/NotificationsShadeScene.kt index 899b2569bb26..db98bc8fff9c 100644 --- a/packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/NotificationsShadeScene.kt +++ b/packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/NotificationsShadeScene.kt @@ -96,6 +96,12 @@ constructor( shadeMode = ShadeMode.Dual, modifier = Modifier.fillMaxWidth(), ) + + // Communicates the bottom position of the drawable area within the shade to NSSL. + NotificationStackCutoffGuideline( + stackScrollView = stackScrollView.get(), + viewModel = notificationsPlaceholderViewModel, + ) } } } -- cgit v1.2.3-59-g8ed1b