forked from github/szkolny
[Hotfix] Fix crashing in grades subject adapter.
This commit is contained in:
parent
4a38906194
commit
5e2c7e89ab
@ -697,6 +697,9 @@ public class GradesSubjectAdapter extends ArrayAdapter<ItemGradesSubjectModel> i
|
||||
@NonNull
|
||||
@Override
|
||||
public View getView(int position, View convertView, @NonNull ViewGroup parent) {
|
||||
if (position >= subjectList.size()) {
|
||||
return convertView;
|
||||
}
|
||||
ItemGradesSubjectModel model = subjectList.get(position);
|
||||
if (model == null) {
|
||||
//Toast.makeText(activity, "return convertView;", Toast.LENGTH_SHORT).show();
|
||||
|
Loading…
Reference in New Issue
Block a user