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

Commit 03f25fd4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Centering big clock vertically on large screen lockscreen and AOD" into sc-v2-dev

parents d182a490 af3f020b
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -89,7 +89,6 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
    private final KeyguardUpdateMonitor mKeyguardUpdateMonitor;
    private final KeyguardBypassController mBypassController;

    private int mLargeClockTopMargin = 0;
    private int mKeyguardClockTopMargin = 0;

    /**
@@ -276,16 +275,15 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
    }

    private void updateClockLayout() {
        int largeClockTopMargin = 0;
        if (mSmartspaceController.isEnabled()) {
            largeClockTopMargin = getContext().getResources().getDimensionPixelSize(
                    R.dimen.keyguard_large_clock_top_margin);
        }
        RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(MATCH_PARENT,
                MATCH_PARENT);
            mLargeClockTopMargin = getContext().getResources().getDimensionPixelSize(
                    R.dimen.keyguard_large_clock_top_margin);
            lp.topMargin = mLargeClockTopMargin;
        lp.topMargin = largeClockTopMargin;
        mLargeClockFrame.setLayoutParams(lp);
        } else {
            mLargeClockTopMargin = 0;
        }
    }

    /**