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

Commit e2d71e45 authored by Adrian Roos's avatar Adrian Roos
Browse files

Don't show incorrect pattern in stealth mode.

Prevent the pattern keyguard from displaying an incorrect pattern when it is configured not to display patterns.

Bug: 11112503
Change-Id: I6defdcbea102e4f3e09193d61071cecc59ea3080
parent e72e85f4
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;