-
Notifications
You must be signed in to change notification settings - Fork 21
First impl #21
base: master
Are you sure you want to change the base?
First impl #21
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Задание выполнено очень хорошо. Буквально пара замечаний
currentStudent = new Student("", "", false, 0); | ||
} | ||
|
||
private void setupEdit(String name, String fname, Boolean isMale, int pic) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fname это сокращение от чего?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
family name
|
||
private void onDeleteClick() { | ||
if (currentStudent == null) { | ||
Toast.makeText(MainActivity.this, R.string.empty_student, Toast.LENGTH_SHORT).show(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно просто this
Toast.makeText(MainActivity.this, R.string.wrong_enter, Toast.LENGTH_SHORT).show(); | ||
} else { | ||
if (currentStudent == null || currentStudent.getFirstName().equals("")) { | ||
students.add(currentStudent = new Student(name.getText().toString(), fname.getText().toString(), male.isChecked(), picId = getRandomPick(male.isChecked()))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name.getText() иногда может вернуть null
|
||
static final class StudentViewHolder extends RecyclerView.ViewHolder { | ||
|
||
private final CircleImageView pImageCircleImageView; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pImageCircleImageView что означет буква p вначале?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
profileImage, исправлю
@@ -3,7 +3,198 @@ | |||
xmlns:tools="http://schemas.android.com/tools" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Очень большая вложенность. Не стоит вкладывать констрейнт в констрейнт
…xt.getText() usage (null case), some code improvements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Общие замечания:
- Нет выделение активного элемента в RecyclerView
- Пол студента не меняется
Работа принята. |
No description provided.