From e652bca25ec16a2ba4743ca8c0337debb8c2c2ac Mon Sep 17 00:00:00 2001 From: = Date: Thu, 15 Feb 2024 11:03:54 +0100 Subject: [PATCH] update: [ANDROAPP-4826] code formatted, visual changes to description --- form/src/main/java/org/dhis2/form/ui/Form.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/form/src/main/java/org/dhis2/form/ui/Form.kt b/form/src/main/java/org/dhis2/form/ui/Form.kt index b330ea52cbc..a805f15dab4 100644 --- a/form/src/main/java/org/dhis2/form/ui/Form.kt +++ b/form/src/main/java/org/dhis2/form/ui/Form.kt @@ -109,7 +109,7 @@ 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 @@ -117,7 +117,7 @@ fun Form( 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,