Skip to content

Commit

Permalink
update: [ANDROAPP-4826] code formatted, visual changes to description
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAparicioAlbaAsenjo committed Feb 15, 2024
1 parent a0e4828 commit e652bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions form/src/main/java/org/dhis2/form/ui/Form.kt
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ fun Form(
focusManager.clearFocus()
}
}

val sectionMessage = if (section.fields.isEmpty()) resources.getString(R.string.form_without_fields) else null

val sectionState = if (section.fields.isEmpty()) SectionState.FIXED else section.state

Section(
title = section.title,
isLastSection = getNextSection(section, sections) == null,
description = if (sections.size >= 2 && section.fields.isNotEmpty()) section.description else null,
description = if (section.fields.isNotEmpty()) section.description else null,
completedFields = section.completedFields(),
totalFields = section.fields.size,
state = sectionState,
Expand Down

0 comments on commit e652bca

Please sign in to comment.