From eb2bcf8bbaf23145274e1aa2b1afcf7e00916a35 Mon Sep 17 00:00:00 2001 From: Pablo Pajuelo Cabezas Date: Thu, 19 Dec 2024 08:20:19 +0100 Subject: [PATCH] fix paddings --- .../src/main/java/org/dhis2/maps/views/MapSelectorScreen.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhis2_android_maps/src/main/java/org/dhis2/maps/views/MapSelectorScreen.kt b/dhis2_android_maps/src/main/java/org/dhis2/maps/views/MapSelectorScreen.kt index 720804eb83..199d6c3b13 100644 --- a/dhis2_android_maps/src/main/java/org/dhis2/maps/views/MapSelectorScreen.kt +++ b/dhis2_android_maps/src/main/java/org/dhis2/maps/views/MapSelectorScreen.kt @@ -570,10 +570,10 @@ private fun SearchInAreaButton( paddingValues = PaddingValues( Spacing.Spacing24, Spacing.Spacing10, - Spacing.Spacing24 - Spacing.Spacing8, + if (searching) Spacing.Spacing24 - Spacing.Spacing8 else Spacing.Spacing24, Spacing.Spacing10, ), - onClick = onClick, + onClick = { if (searching.not()) onClick() }, ) }