Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24a379c9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update clock location" into sc-v2-dev am: bda966d4 am: b4f39650

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16457712

Change-Id: I551726bc137a67472f5e7c7a06860e0810c014db
parents 471b37a9 b4f39650
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,5 +22,5 @@
    <dimen name="large_clock_text_size">200dp</dimen>

    <!-- With the large clock, move up slightly from the center -->
    <dimen name="keyguard_large_clock_top_margin">-104dp</dimen>
    <dimen name="keyguard_large_clock_top_margin">-112dp</dimen>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -602,7 +602,7 @@
    <!-- When large clock is showing, offset the smartspace by this amount -->
    <dimen name="keyguard_smartspace_top_offset">12dp</dimen>
    <!-- With the large clock, move up slightly from the center -->
    <dimen name="keyguard_large_clock_top_margin">-52dp</dimen>
    <dimen name="keyguard_large_clock_top_margin">-60dp</dimen>

    <!-- Default line spacing multiplier between hours and minutes of the keyguard clock -->
    <item name="keyguard_clock_line_spacing_scale" type="dimen" format="float">.7</item>
+3 −5
Original line number Diff line number Diff line
@@ -275,11 +275,9 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
    }

    private void updateClockLayout() {
        int largeClockTopMargin = 0;
        if (mSmartspaceController.isEnabled()) {
            largeClockTopMargin = getContext().getResources().getDimensionPixelSize(
        int largeClockTopMargin = getContext().getResources().getDimensionPixelSize(
                R.dimen.keyguard_large_clock_top_margin);
        }

        RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(MATCH_PARENT,
                MATCH_PARENT);
        lp.topMargin = largeClockTopMargin;