private void addUserToClass(final ShowClassParticipator item) {
    if (item.getIsParticipating()) {

      AlertDialog.Builder builder = new AlertDialog.Builder(this);
      final AdminActivity activity = this;
      final View dialogView =
          getLayoutInflater().inflate(R.layout.dialog_rider_enter_horse_name, null);

      builder
          .setView(dialogView)
          .setTitle(R.string.admin_prompt_horse_name)
          .setPositiveButton(
              R.string.ok_caption,
              new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int which) {

                  EditText nameEditText =
                      (EditText)
                          dialogView.findViewById(R.id.dialog_rider_enter_horse_name_edit_text);
                  String name = nameEditText.getText().toString();

                  AdminProxy.addUserToClass(
                      activity,
                      getCurrentEvent().getId(),
                      item.getShowClass().getId(),
                      getSelectedRider().getId(),
                      name);
                }
              });
      AlertDialog alert = builder.create();
      alert.show();
    }
  }
 private void classItemClicked(int position) {
   ListView lv = (ListView) findViewById(R.id.admin_event_participant_classes_list_view);
   CheckableShowClassAdapter adapter = (CheckableShowClassAdapter) lv.getAdapter();
   ShowClassParticipator item = adapter.getItems().get(position);
   if (item.getIsParticipating()) Log.d(TAG, "true!");
 }