From ac2c8ba6963f4f04aae7a9b19ff99fe8215f02ae Mon Sep 17 00:00:00 2001 From: Pablo Date: Fri, 5 Jul 2024 11:32:18 +0200 Subject: [PATCH] fix: [ANDROAPP-6285] Crash when selecting map in landscape search screen (#3714) Signed-off-by: Pablo --- .../org/dhis2/usescases/searchTrackEntity/SearchTEActivity.java | 1 - .../org/dhis2/usescases/searchTrackEntity/mapView/SearchTEMap.kt | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/dhis2/usescases/searchTrackEntity/SearchTEActivity.java b/app/src/main/java/org/dhis2/usescases/searchTrackEntity/SearchTEActivity.java index 4969166fcf..d9d43b6f68 100644 --- a/app/src/main/java/org/dhis2/usescases/searchTrackEntity/SearchTEActivity.java +++ b/app/src/main/java/org/dhis2/usescases/searchTrackEntity/SearchTEActivity.java @@ -398,7 +398,6 @@ private void configureBottomNavigation() { this, () -> { presenter.trackSearchMapVisualization(); - viewModel.setMapScreen(); showMap(); showSearchAndFilterButtons(); return null; diff --git a/app/src/main/java/org/dhis2/usescases/searchTrackEntity/mapView/SearchTEMap.kt b/app/src/main/java/org/dhis2/usescases/searchTrackEntity/mapView/SearchTEMap.kt index bd8ac8e108..727b704650 100644 --- a/app/src/main/java/org/dhis2/usescases/searchTrackEntity/mapView/SearchTEMap.kt +++ b/app/src/main/java/org/dhis2/usescases/searchTrackEntity/mapView/SearchTEMap.kt @@ -89,6 +89,7 @@ class SearchTEMap : FragmentGlobalAbstract(), MapboxMap.OnMapClickListener { (context as SearchTEActivity).searchComponent.plus( SearchTEMapModule(), ).inject(this) + viewModel.setMapScreen() } override fun onCreateView(