A little refactor of user modal

This commit is contained in:
Mieszko Wrzeszczyński 2018-10-26 23:54:18 +02:00
parent b87646088c
commit edd5fb76a3

View File

@ -93,7 +93,8 @@ public class UsersListActivity extends BaseActivity {
@Override @Override
public void onLongClick(View view, int position) { 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); AlertDialog.Builder alertDialogBuilderUserInput = new AlertDialog.Builder(this);
alertDialogBuilderUserInput.setView(view); 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); 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();
} }