mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-19 02:56:45 -06:00
Fix display items on refresh (#70)
This commit is contained in:
parent
797e233809
commit
2bb2341d0f
@ -105,6 +105,7 @@ public class AttendanceTabPresenter extends BasePresenter<AttendanceTabContract.
|
||||
boolean isEmptyWeek = true;
|
||||
|
||||
for (Day day : dayList) {
|
||||
day.resetAttendanceLessons();
|
||||
AttendanceHeaderItem headerItem = new AttendanceHeaderItem(day);
|
||||
|
||||
if (isEmptyWeek) {
|
||||
@ -168,7 +169,6 @@ public class AttendanceTabPresenter extends BasePresenter<AttendanceTabContract.
|
||||
loadingTask.cancel(true);
|
||||
loadingTask = null;
|
||||
}
|
||||
|
||||
super.onDestroy();
|
||||
}
|
||||
}
|
||||
|
@ -109,6 +109,7 @@ public class GradesPresenter extends BasePresenter<GradesContract.View>
|
||||
headerItems = new ArrayList<>();
|
||||
|
||||
for (Subject subject : subjectList) {
|
||||
subject.resetGradeList();
|
||||
List<Grade> gradeList = subject.getGradeList();
|
||||
|
||||
if (!gradeList.isEmpty()) {
|
||||
|
@ -108,6 +108,7 @@ public class TimetableTabPresenter extends BasePresenter<TimetableTabContract.Vi
|
||||
boolean isFreeWeek = true;
|
||||
|
||||
for (Day day : dayList) {
|
||||
day.resetTimetableLessons();
|
||||
TimetableHeaderItem headerItem = new TimetableHeaderItem(day);
|
||||
|
||||
if (isFreeWeek) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user