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

Commit 45e5997c authored by Annie Chin's avatar Annie Chin
Browse files

Add an earlier call to super.onMeasure()

Fixes: 33280622

mTop/BottomPaddingOffset were not being initialized before they were
being used in CalculatorResult.onMeasure()

Change-Id: I38ae4b5f0d2c2407d04810e7720710d17aa347da
parent 31ea252f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -255,6 +255,7 @@ public class CalculatorResult extends AlignedTextView implements MenuItem.OnMenu
    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        if (!isLaidOut()) {
            super.onMeasure(widthMeasureSpec, heightMeasureSpec);
            // Set a minimum height so scaled error messages won't affect our layout.
            setMinimumHeight(getLineHeight() + getCompoundPaddingBottom()
                    + getCompoundPaddingTop());