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 79b5cc5 commit b990688
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 b990688

Please sign in to comment.