private void setupUserIfExists() { if (user != null) { userType = user.getType(); setEditTextValue(username, user.getUsername()); setEditTextValue(email, user.getEmail()); setEditTextDate(birthday, user.getBirthday()); setUserGenderValue(); } }
private void bindView(User user) { check.setChecked(selectedCoauthors != null && selectedCoauthors.contains(user)); name.setText(user.getUsername()); }