Example #1
0
 private void doCheckAndCreatePattern(List<LockPatternView.Cell> pattern) {
   if (pattern.size() < minWiredDots) {
     lockPatternView.setDisplayMode(LockPatternView.DisplayMode.Wrong);
     doLockPatternResult(ResuleType.MIN_DOTS_FAIL);
     lockPatternView.postDelayed(mLockPatternViewReloader, DELAY_TIME_TO_RELOAD_LOCK_PATTERN_VIEW);
     return;
   }
   executeLockPatternTask(pattern);
 }
Example #2
0
 @Override
 public void onPatternCleared() {
   lockPatternView.removeCallbacks(mLockPatternViewReloader);
   switch (lockPatternType) {
     case CREATE_PATTERN:
     case COMPARE_PATTERN:
       lockPatternView.setDisplayMode(LockPatternView.DisplayMode.Correct);
       break;
     case VERIFY_CAPTCHA:
       List<LockPatternView.Cell> pattern = getIntent().getParcelableArrayListExtra(EXTRA_PATTERN);
       lockPatternView.setPattern(LockPatternView.DisplayMode.Animate, pattern);
       break;
   }
   onPatternCleared(lockPatternType);
 }
Example #3
0
 @Override
 public void onPatternStart() {
   lockPatternView.removeCallbacks(mLockPatternViewReloader);
   lockPatternView.setDisplayMode(LockPatternView.DisplayMode.Correct);
   onPatternStart(lockPatternType);
 }