Exemplo n.º 1
0
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   if (PatternLockUtils.checkConfirmPatternResult(this, requestCode, resultCode)) {
     confirmStarted = false;
   } else {
     super.onActivityResult(requestCode, resultCode, data);
   }
 }
Exemplo n.º 2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    AppUtils.setupActionBarDisplayUp(this);

    setContentView(R.layout.pattern_lock_activity);

    if (savedInstanceState != null) {
      confirmStarted = savedInstanceState.getBoolean(KEY_CONFIRM_STARTED);
    }
    if (!confirmStarted) {
      PatternLockUtils.confirmPatternIfHas(this);
      confirmStarted = true;
    }
  }