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

Commit ef88f708 authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Fixed unnecessary layer creations in the pin unlock method" into lmp-dev

parents bd2ffe8f 6380482d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -152,6 +152,11 @@ public class NumPadKey extends ViewGroup {
        mKlondikeText.layout(left, top, left + mKlondikeText.getMeasuredWidth(), bottom);
    }

    @Override
    public boolean hasOverlappingRendering() {
        return false;
    }

    // Cause a VIRTUAL_KEY vibration
    public void doHapticKeyClick() {
        if (mEnableHaptics) {
+5 −0
Original line number Diff line number Diff line
@@ -145,6 +145,11 @@ public class PasswordTextView extends View {
        }
    }

    @Override
    public boolean hasOverlappingRendering() {
        return false;
    }

    private Rect getCharBounds() {
        float textHeight = mTextHeightRaw * getResources().getDisplayMetrics().scaledDensity;
        mDrawPaint.setTextSize(textHeight);