Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo <[email protected]>
  • Loading branch information
Balcan committed Feb 2, 2024
1 parent eac7a07 commit 32503c7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ class TEIDataFragment : FragmentGlobalAbstract(), TEIDataContracts.View {
binding.filterLayout.adapter = filtersAdapter
presenter.shouldDisplayEventCreationButton.observe(this.viewLifecycleOwner) { showCreateEventButton ->
binding.dialFabLayout.visibility = if (showCreateEventButton) {
View.VISIBLE
View.VISIBLE.also { binding.dialFabLayout.setFabVisible(true) }
} else {
View.GONE
View.GONE.also { binding.dialFabLayout.setFabVisible(false) }
}
}
}.root
Expand Down Expand Up @@ -208,7 +208,7 @@ class TEIDataFragment : FragmentGlobalAbstract(), TEIDataContracts.View {
fun setData(dashboardModel: DashboardProgramModel) {
this.dashboardModel = dashboardModel
if (dashboardModel.currentEnrollment != null) {
binding.dialFabLayout.setFabVisible(true)
// binding.dialFabLayout.setFabVisible(true)
presenter.setDashboardProgram(dashboardModel)
eventCatComboOptionSelector = EventCatComboOptionSelector(
dashboardModel.currentProgram.categoryComboUid(),
Expand Down Expand Up @@ -278,7 +278,7 @@ class TEIDataFragment : FragmentGlobalAbstract(), TEIDataContracts.View {
)
}
} else {
binding.dialFabLayout.setFabVisible(false)
// binding.dialFabLayout.setFabVisible(false)
binding.teiRecycler.adapter = DashboardProgramAdapter(presenter, dashboardModel)
binding.teiRecycler.addItemDecoration(
DividerItemDecoration(
Expand Down

0 comments on commit 32503c7

Please sign in to comment.