summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
diff options
context:
space:
mode:
authorBeverly <beverlyt@google.com>2020-11-16 15:07:42 -0500
committerBeverly Tai <beverlyt@google.com>2020-11-17 19:32:00 +0000
commit741c6e367d36c52fd3456bcc1547f72f4c9f3833 (patch)
tree256b95527bccd2d70051af24c911975f2bd7d514 /packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
parent192b7c9eaabd746ebdedb306a5a93d8740716d22 (diff)
Update spacing/layout of LS clock
- Only use the burn-in offsets on AOD. This means the clock will be in a different position on LS compared to AOD. - Align the top of the KeyguardSliceView (smart space) with the top of the text of the clock (as opposed dto the top of the clock's view) - Decrease bottom padding on KeyguardSliceTextView so that the DND icon doesn't get cutoff when there's a large smart space info Test: atest SystemUITests, manual Bug: 170228350 Change-Id: I332300616e4218b6fcd24f837127a7eee487d4e7
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
index cc7b8322d190..dcb306e6110a 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
@@ -297,6 +297,15 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV
mLockScreenMode = mode;
mKeyguardClockSwitchController.updateLockScreenMode(mode);
mKeyguardSliceViewController.updateLockScreenMode(mode);
+ if (mLockScreenMode == KeyguardUpdateMonitor.LOCK_SCREEN_MODE_LAYOUT_1) {
+ // align the top of keyguard_status_area with the top of the clock text instead
+ // of the top of the view
+ mKeyguardSliceViewController.updateTopMargin(
+ mKeyguardClockSwitchController.getClockTextTopPadding());
+ } else {
+ // reset margin
+ mKeyguardSliceViewController.updateTopMargin(0);
+ }
updateAodIcons();
}