diff options
2 files changed, 2 insertions, 12 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt index f046ccc..7966c5b 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt @@ -48,22 +48,12 @@ class UnitInformationFragment : Fragment() { super.onViewCreated(view, savedInstanceState) fetchInformation() - } - - override fun onResume() { - super.onResume() - setupObservers() } - override fun onStop() { - super.onStop() - - removeObservers() - } - override fun onDestroyView() { super.onDestroyView() + removeObservers() _binding = null } diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt index 78f0173..fcde002 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/ReportController.kt @@ -95,7 +95,7 @@ class ReportController( val eventsResult = reportsApi.reportsEventsGet( from, to, EventInformation.reportTypesToStrings(types), deviceId ) - val geofencesResult = geofencesApi.geofencesGet(all = true) + val geofencesResult = geofencesApi.geofencesGet() val result = mutableListOf<EventInformation>() eventsResult.forEach { event -> |