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

Commit 73415b0c authored by Adrian Roos's avatar Adrian Roos Committed by Android (Google) Code Review
Browse files

Merge "Don't show incorrect pattern in stealth mode."

parents 80a3a364 e2d71e45
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -868,12 +868,10 @@ public class LockPatternView extends View {

        // TODO: the path should be created and cached every time we hit-detect a cell
        // only the last segment of the path should be computed here
        // draw the path of the pattern (unless the user is in progress, and
        // we are in stealth mode)
        final boolean drawPath = (!mInStealthMode || mPatternDisplayMode == DisplayMode.Wrong);
        // draw the path of the pattern (unless we are in stealth mode)
        final boolean drawPath = !mInStealthMode;

        // draw the arrows associated with the path (unless the user is in progress, and
        // we are in stealth mode)
        // draw the arrows associated with the path (unless we are in stealth mode)
        boolean oldFlag = (mPaint.getFlags() & Paint.FILTER_BITMAP_FLAG) != 0;
        mPaint.setFilterBitmap(true); // draw with higher quality since we render with transforms
        if (drawPath) {
@@ -974,7 +972,7 @@ public class LockPatternView extends View {
        Bitmap outerCircle;
        Bitmap innerCircle;

        if (!partOfPattern || (mInStealthMode && mPatternDisplayMode != DisplayMode.Wrong)) {
        if (!partOfPattern || mInStealthMode) {
            // unselected circle
            outerCircle = mBitmapCircleDefault;
            innerCircle = mBitmapBtnDefault;