Skip to content

Commit

Permalink
fix android tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo <[email protected]>
  • Loading branch information
Balcan committed Feb 8, 2024
1 parent 3f3af35 commit 88e2ee3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ class TeiDashboardMobileActivity :
override fun showMoreOptions(view: View?) {
val menu: Int = if (enrollmentUid == null) {
R.menu.dashboard_tei_menu
} else if (java.lang.Boolean.TRUE == dashboardViewModel.groupByStage.value) {
} else if (dashboardViewModel.groupByStage.value != false) {
R.menu.dashboard_menu_group
} else {
R.menu.dashboard_menu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class TEIDataFragment : FragmentGlobalAbstract(), TEIDataContracts.View {
followUpData = followUpInfoBar,
enrollmentData = enrollmentInfoBar,
card = card,
isGrouped = groupingEvents ?: false,
isGrouped = groupingEvents ?: true,
timelineEventHeaderModel = TimelineEventsHeaderModel(
displayEventCreationButton,
eventCount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fun TeiDetailDashboard(
enrollmentData: InfoBarUiModel?,
card: TeiCardUiModel?,
timelineEventHeaderModel: TimelineEventsHeaderModel,
isGrouped: Boolean = false,
isGrouped: Boolean = true,
timelineOnEventCreationOptionSelected: (EventCreationType) -> Unit,
) {
Column(
Expand Down

0 comments on commit 88e2ee3

Please sign in to comment.