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

Commit 35bb98d5 authored by JP Abgrall's avatar JP Abgrall Committed by Android (Google) Code Review
Browse files

Merge "unlock screen: enable DEBUG and track pattern start/cell progress."

parents 2184a985 e94d763f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ import java.util.List;
class PatternUnlockScreen extends LinearLayoutWithDefaultTouchRecepient
        implements KeyguardScreen {

    private static final boolean DEBUG = false;
    private static final boolean DEBUG = true; /* TODO: revert before JB release */
    private static final String TAG = "UnlockScreen";

    // how long before we clear the wrong pattern
@@ -321,6 +321,7 @@ class PatternUnlockScreen extends LinearLayoutWithDefaultTouchRecepient
            implements LockPatternView.OnPatternListener {

        public void onPatternStart() {
            if (DEBUG) Log.d(TAG, "Got pattern start");
            mLockPatternView.removeCallbacks(mCancelPatternRunnable);
        }

@@ -336,6 +337,7 @@ class PatternUnlockScreen extends LinearLayoutWithDefaultTouchRecepient
                // Give just a little extra time if they hit one of the first few dots
                mCallback.pokeWakelock(UNLOCK_PATTERN_WAKE_INTERVAL_FIRST_DOTS_MS);
            }
            if (DEBUG) Log.d(TAG, "Got pattern cell");
        }

        public void onPatternDetected(List<LockPatternView.Cell> pattern) {