mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 13:48:20 +01:00
[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
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public View getView(int position, View convertView, @NonNull ViewGroup parent) {
|
public View getView(int position, View convertView, @NonNull ViewGroup parent) {
|
||||||
|
if (position >= subjectList.size()) {
|
||||||
|
return convertView;
|
||||||
|
}
|
||||||
ItemGradesSubjectModel model = subjectList.get(position);
|
ItemGradesSubjectModel model = subjectList.get(position);
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
//Toast.makeText(activity, "return convertView;", Toast.LENGTH_SHORT).show();
|
//Toast.makeText(activity, "return convertView;", Toast.LENGTH_SHORT).show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user