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

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

Merge "PIN Bouncer: Fix margins" into sc-dev

parents 0bd23800 f3a7691c
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -156,9 +156,14 @@ public class NumPadKey extends ViewGroup {
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        mAnimator.updateMargin((ViewGroup.MarginLayoutParams) getLayoutParams());
    public void setLayoutParams(ViewGroup.LayoutParams params) {
        mAnimator.updateMargin((ViewGroup.MarginLayoutParams) params);

        super.setLayoutParams(params);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        measureChildren(widthMeasureSpec, heightMeasureSpec);