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

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

Merge "Make pixel shifting of custom clocks consistent with default"

parents 006e2943 19e3e2ad
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -76,8 +76,10 @@ public class ClockLayout extends FrameLayout {
    protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
        super.onLayout(changed, left, top, right, bottom);

        final float offsetX = getBurnInOffset(mBurnInPreventionOffsetX, true);
        final float offsetY = getBurnInOffset(mBurnInPreventionOffsetY, false);
        final float offsetX = getBurnInOffset(mBurnInPreventionOffsetX * 2, true)
                - mBurnInPreventionOffsetX;
        final float offsetY = getBurnInOffset(mBurnInPreventionOffsetY * 2, false)
                - mBurnInPreventionOffsetY;

        // Put digital clock in two left corner of the screen.
        if (mDigitalClock != null) {