From af3f020b35075184294e90cb5f1da6545081612b Mon Sep 17 00:00:00 2001 From: Michal Brzezinski Date: Fri, 10 Dec 2021 17:18:57 +0000 Subject: [PATCH] Centering big clock vertically on large screen lockscreen and AOD Big clock was not centered vertically properly in case we don't support smartspace on the device. When smartspace is not present big clock's height is wrap_content and that makes it (and all parent views) takes much less space. Then even though clock might be centered in parent, parent is not centered on the screen so it doesn't change much. This change is making it always go match_parent, that is (more or less) full height of the screen. Fixes: 209013448 Test: manual Change-Id: I721b5750ae34d204c6eb0bdb7edca6aa12e3a88b --- .../keyguard/KeyguardClockSwitchController.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java index c628d4401bb11..032da789518c8 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java @@ -89,7 +89,6 @@ public class KeyguardClockSwitchController extends ViewController