From 4f11fba0da840ff0abf6d43f1840df8c0153ac60 Mon Sep 17 00:00:00 2001 From: Yining Liu Date: Thu, 12 Dec 2024 19:26:26 +0000 Subject: Right-align short shelf for split shade when minimalism enabled Align the short shelf to the right (left when RTL) side for split shade on lock screen when the notification minimalism is enabled. Bug: 357643925 Flag: com.android.server.notification.notification_minimalism Test: manual, verify split shade on lock screen Change-Id: I7129529ef9382c2c9bb7d7a63e0b7b7e255643fb --- .../res/layout/status_bar_notification_shelf.xml | 4 +- .../systemui/statusbar/NotificationShelf.java | 78 +++++++++++++++++-- .../row/NotificationBackgroundView.java | 22 ++++-- .../shelf/NotificationShelfBackgroundView.kt | 44 +++++++++++ .../shelf/NotificationShelfIconContainer.kt | 90 ++++++++++++++++++++++ .../statusbar/phone/NotificationIconContainer.java | 30 ++++++-- 6 files changed, 246 insertions(+), 22 deletions(-) create mode 100644 packages/SystemUI/src/com/android/systemui/statusbar/notification/shelf/NotificationShelfBackgroundView.kt create mode 100644 packages/SystemUI/src/com/android/systemui/statusbar/notification/shelf/NotificationShelfIconContainer.kt diff --git a/packages/SystemUI/res/layout/status_bar_notification_shelf.xml b/packages/SystemUI/res/layout/status_bar_notification_shelf.xml index 58c545036b27..071b07631ff9 100644 --- a/packages/SystemUI/res/layout/status_bar_notification_shelf.xml +++ b/packages/SystemUI/res/layout/status_bar_notification_shelf.xml @@ -24,11 +24,11 @@ android:clickable="true" > - -