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

Commit 6380482d authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed unnecessary layer creations in the pin unlock method

This was especially noticible when double tapping a notification
because of the staggered appearing.

Bug: 17287256
Change-Id: I8f39892fa122bb8b7b6f2a7b1e7be8a9570e661e
parent e84e6676
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);