Fix behaviour with multiple choices

This commit is contained in:
Dani Matilla 2018-02-20 13:11:49 +01:00 committed by GitHub
parent 3e7ced68a6
commit 6f3f2ca020

View File

@ -198,16 +198,16 @@ public class EnrollmentExpandableListAdapter extends BaseExpandableListAdapter {
if (multiple == 0 && role != Constants.TEACHER_TYPE_CODE) { //single inscriptions:
holder.checkBox.setVisibility(View.GONE);
holder.radioButton.setVisibility(View.VISIBLE);
holder.radioButton.setText(groupName);
} else { //multiple inscriptions :
holder.checkBox.setVisibility(View.VISIBLE);
holder.radioButton.setVisibility(View.GONE);
holder.checkBox.setText(groupName);
holder.checkBox.setChecked(member != 0);
}
holder.radioButton.setText(groupName);
holder.checkBox.setChecked(member != 0);
holder.nStudentText.setText(context.getString(R.string.numStudent) + ": " + String.valueOf(students));
if (maxStudents != -1) {