@Override
 public void onClick(View v) {
   int id = v.getId();
   if (id == R.id.change_id) {
     ChangeUserIdDialogFragment changeUserIdDialogFragment =
         ChangeUserIdDialogFragment.newInstance(this);
     changeUserIdDialogFragment.show(getSupportFragmentManager(), "user_id");
   } else if (id == R.id.add_tag) {
     AddTagDialogFragment addTagDialogFragment = AddTagDialogFragment.newInstance(this);
     addTagDialogFragment.show(getSupportFragmentManager(), "tag");
   } else if (id == R.id.settings) {
     SharedPreferences prefs = getSharedPreferences(PREFS, MODE_PRIVATE);
     SharedPreferences.Editor editor = prefs.edit();
     editor.putBoolean(AUTO_START, false);
     editor.commit();
     Intent intent = new Intent(this, R1PushTest.class);
     startActivity(intent);
     finish();
   }
 }
 public static ChangeUserIdDialogFragment newInstance(OnUserIdChangedListener listener) {
   ChangeUserIdDialogFragment fragment = new ChangeUserIdDialogFragment();
   fragment.setOnCreatedListener(listener);
   return fragment;
 }