diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-18 10:59:06 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-18 10:59:06 -0600 |
commit | 269f3454d128237e82cbb57dac77c58ab7423aaf (patch) | |
tree | 65e7d4afe4226f362c6832beb3919faf05b977e0 | |
parent | 89a3559823000e23c4898b79a3225d1cd8c0bb3b (diff) | |
download | etbsa-trackermap-mobile-269f3454d128237e82cbb57dac77c58ab7423aaf.tar.gz etbsa-trackermap-mobile-269f3454d128237e82cbb57dac77c58ab7423aaf.tar.bz2 etbsa-trackermap-mobile-269f3454d128237e82cbb57dac77c58ab7423aaf.zip |
Fixed geofences retrieval in reports and lifecycle issue with unit details fragment
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 -> |