Skip to content

Commit

Permalink
fix landscape event loading
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo <[email protected]>
  • Loading branch information
Balcan committed Feb 14, 2024
1 parent 0f88845 commit 6b4db0b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,11 @@ class TEIDataFragment : FragmentGlobalAbstract(), TEIDataContracts.View {
}

override fun updateEnrollment(update: Boolean) {
presenter.fetchEvents(update)
presenter.getEnrollment()?.let { eventAdapter?.setEnrollment(it) }
dashboardViewModel.updateDashboard()
if(update) {
presenter.fetchEvents(update)
presenter.getEnrollment()?.let { eventAdapter?.setEnrollment(it) }
dashboardViewModel.updateDashboard()
}
}

companion object {
Expand Down

0 comments on commit 6b4db0b

Please sign in to comment.