Ejemplo n.º 1
0
  @Override
  public void onClick(View v) {
    if (!ClickTimerEvent.isClickEvent()) return;
    if (v == btnInsert) {
      // 「登録」ボタン ⇒インサート処理
      if (pref.readConfig("id", "0").equals("0")) {
        datainsert();
      } else {
        dataupdate();
      }

      Intent intent = new Intent(GenePass.this, PassList2.class);
      intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
      startActivity(intent);
    } else if (v == btnRegene) {
      // 「ReGene」ボタン ⇒もう一度パスワード作る
      poolString.init();
      makePass();
    }
  }