A little refactor of user modal
This commit is contained in:
parent
b87646088c
commit
edd5fb76a3
@ -93,7 +93,8 @@ public class UsersListActivity extends BaseActivity {
|
||||
|
||||
@Override
|
||||
public void onLongClick(View view, int position) {
|
||||
showActionsDialog(position);
|
||||
//showActionsDialog(position);
|
||||
showNoteDialog(true, tutorsList.get(position), position);
|
||||
}
|
||||
}));
|
||||
}
|
||||
@ -121,9 +122,16 @@ public class UsersListActivity extends BaseActivity {
|
||||
AlertDialog.Builder alertDialogBuilderUserInput = new AlertDialog.Builder(this);
|
||||
alertDialogBuilderUserInput.setView(view);
|
||||
|
||||
final EditText inputNote = view.findViewById(R.id.note);
|
||||
final TextView inputNote = view.findViewById(R.id.note);
|
||||
TextView dialogTitle = view.findViewById(R.id.dialog_title);
|
||||
dialogTitle.setText(note.getTitle() + note.getFirstName() + note.getDepartment());
|
||||
dialogTitle.setText(note.getNormalizedUserName());
|
||||
|
||||
|
||||
inputNote.setText(note.getNormalizedUserName() + note.getTitle() + note.getDepartment());
|
||||
|
||||
final AlertDialog alertDialog = alertDialogBuilderUserInput.create();
|
||||
alertDialog.show();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user