From 1d50dfa4e4be6b23009bf0d1f3eb5947406060cd Mon Sep 17 00:00:00 2001 From: Sherry Zhou Date: Mon, 1 Jul 2024 17:06:45 +0000 Subject: Fix the gap between notification and smartspace is too large in large screen portrait mode It's caused by topPadding is not substracted from notification bounds, and the top margin is added to the position of notification twice. Bug: 349955447 Test: manually test the position of notifications in large screen portrait, landscape mode and normal screen portrait mode. Flag: com.android.systemui.migrate_clocks_to_blueprint Change-Id: I7343b3dfdc718f49139d0ef62e2dcfc26cc1205b --- .../stack/ui/viewmodel/SharedNotificationContainerViewModel.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModel.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModel.kt index 8e58ffbb399e..3cee41941383 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModel.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModel.kt @@ -186,7 +186,6 @@ constructor( interactor.configurationBasedDimensions .map { when { - !it.useSplitShade -> 0 it.useLargeScreenHeader -> it.marginTopLargeScreen else -> it.marginTop } -- cgit v1.2.3-59-g8ed1b