Fix behaviour with multiple choices
This commit is contained in:
parent
3e7ced68a6
commit
6f3f2ca020
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user