summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sherry Zhou <yuandizhou@google.com> 2024-07-01 17:06:45 +0000
committer Sherry Zhou <yuandizhou@google.com> 2024-07-01 22:45:13 +0000
commit1d50dfa4e4be6b23009bf0d1f3eb5947406060cd (patch)
tree1914bfa71c7e98a96dec151c3538505428bd6b21
parent1f8ddb15817a8d88a64f5aaa67d548eaed4d5c52 (diff)
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
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModel.kt1
1 files changed, 0 insertions, 1 deletions
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
}