From 4069521d48b3d3787321c92c4b428c61d8f619f4 Mon Sep 17 00:00:00 2001 From: Beverly Date: Wed, 18 Nov 2020 09:05:25 -0500 Subject: [PATCH] Fix layout for lock icon when in landscape In landscape, align the lock icon and KeyguardMessage area to the left so it doesn't overlap the bouncer pin/pattern/password. Test: atest StatusBarKeyguardViewManagerTest Test: manual Fixes: 173508546 Change-Id: I624a10b1c4dd8d6c4498996f001a18a96a0c969c --- .../res/layout/super_notification_shade.xml | 3 +- .../phone/StatusBarKeyguardViewManager.java | 47 ++++++++++++++++--- .../StatusBarKeyguardViewManagerTest.java | 2 + 3 files changed, 45 insertions(+), 7 deletions(-) diff --git a/packages/SystemUI/res/layout/super_notification_shade.xml b/packages/SystemUI/res/layout/super_notification_shade.xml index 0ba546eff6896..f9841005e8f72 100644 --- a/packages/SystemUI/res/layout/super_notification_shade.xml +++ b/packages/SystemUI/res/layout/super_notification_shade.xml @@ -78,7 +78,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_height" - android:layout_gravity="top|center_horizontal"> + android:layout_gravity="top|center_horizontal" + android:gravity="center_horizontal">