diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml index 19f82480284e0..55bdebd2f5824 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml @@ -89,7 +89,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/keyguard_status_area" - android:paddingTop="20dp" android:visibility="gone"> + + + + 170dp + diff --git a/packages/SystemUI/res/values-h800dp/dimens.xml b/packages/SystemUI/res/values-h800dp/dimens.xml index 6a0e880675dfb..cfacbec0dff2e 100644 --- a/packages/SystemUI/res/values-h800dp/dimens.xml +++ b/packages/SystemUI/res/values-h800dp/dimens.xml @@ -17,4 +17,7 @@ 76dp - \ No newline at end of file + + + 200dp + diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index 6f69483106e5d..8888ad6b04119 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -1041,6 +1041,13 @@ burn-in on AOD. --> 50dp + + 42dp + + + 150dp + 15dp diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java index 323449af08506..c639b13b38cb8 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java @@ -23,6 +23,7 @@ import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.RelativeLayout; import android.widget.TextClock; +import android.widget.TextView; import com.android.internal.colorextraction.ColorExtractor; import com.android.keyguard.dagger.KeyguardStatusViewScope; @@ -143,6 +144,10 @@ public class KeyguardClockSwitch extends RelativeLayout { setTextSize(TypedValue.COMPLEX_UNIT_PX, mContext.getResources() .getDimensionPixelSize(R.dimen.widget_big_font_size)); + ((TextView) mNewLockscreenLargeClockFrame.getChildAt(0)) + .setTextSize(TypedValue.COMPLEX_UNIT_PX, mContext.getResources() + .getDimensionPixelSize(R.dimen.large_clock_text_size)); + mClockSwitchYAmount = mContext.getResources().getDimensionPixelSize( R.dimen.keyguard_clock_switch_y_shift); } @@ -374,7 +379,6 @@ public class KeyguardClockSwitch extends RelativeLayout { if (hasVisibleNotifications == mHasVisibleNotifications) { return; } - animateClockChange(!hasVisibleNotifications); mHasVisibleNotifications = hasVisibleNotifications; diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java index 6da5d1b90cd96..6cd7a74cdf02e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java @@ -111,6 +111,11 @@ public class KeyguardClockPositionAlgorithm { */ private int mBurnInPreventionOffsetY; + /** + * Burn-in prevention y translation for large clock layouts. + */ + private int mBurnInPreventionOffsetYLargeClock; + /** * Doze/AOD transition amount. */ @@ -156,6 +161,8 @@ public class KeyguardClockPositionAlgorithm { R.dimen.burn_in_prevention_offset_x); mBurnInPreventionOffsetY = res.getDimensionPixelSize( R.dimen.burn_in_prevention_offset_y); + mBurnInPreventionOffsetYLargeClock = res.getDimensionPixelSize( + R.dimen.burn_in_prevention_offset_y_large_clock); } /** @@ -287,8 +294,12 @@ public class KeyguardClockPositionAlgorithm { } private float burnInPreventionOffsetY() { - return getBurnInOffset(mBurnInPreventionOffsetY * 2, false /* xAxis */) - - mBurnInPreventionOffsetY; + int offset = mBurnInPreventionOffsetY; + if (mLockScreenMode != KeyguardUpdateMonitor.LOCK_SCREEN_MODE_NORMAL) { + offset = mBurnInPreventionOffsetYLargeClock; + } + + return getBurnInOffset(offset * 2, false /* xAxis */) - offset; } private float burnInPreventionOffsetX() {