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
This commit is contained in:
@@ -239,6 +239,15 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
|
||||
mView.setFormat24Hour(Patterns.sClockView24);
|
||||
}
|
||||
|
||||
float getClockTextTopPadding() {
|
||||
if (mLockScreenMode == KeyguardUpdateMonitor.LOCK_SCREEN_MODE_LAYOUT_1
|
||||
&& mNewLockScreenClockViewController != null) {
|
||||
return mNewLockScreenClockViewController.getClockTextTopPadding();
|
||||
}
|
||||
|
||||
return mView.getClockTextTopPadding();
|
||||
}
|
||||
|
||||
private void updateAodIcons() {
|
||||
NotificationIconContainer nic = (NotificationIconContainer)
|
||||
mView.findViewById(
|
||||
|
||||
Reference in New Issue
Block a user