Skip to content

Commit 9ffbae4

Browse files
Fix Add Location Bug on Map View. (#3694)
Signed-off-by: Lentumunai-Mark <[email protected]>
1 parent 4ea8d16 commit 9ffbae4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

android/geowidget/src/main/java/org/smartregister/fhircore/geowidget/screens/GeoWidgetFragment.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ class GeoWidgetFragment : Fragment() {
145145
}
146146
}
147147

148-
if (showAddLocationButton) {
149-
setOnAddLocationListener(this)
150-
}
151148
setOnClickLocationListener(this)
152149
}
153150
} catch (mapboxConfigurationException: MapboxConfigurationException) {
@@ -262,6 +259,9 @@ class GeoWidgetFragment : Fragment() {
262259
if (showPlaneSwitcherButton) {
263260
baseLayerSwitcherPlugin.show()
264261
}
262+
if (showAddLocationButton) {
263+
setOnAddLocationListener(this)
264+
}
265265
}
266266

267267
@VisibleForTesting

0 commit comments

Comments
 (0)