aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map
diff options
context:
space:
mode:
authorIsidro Henoch <imhenoch@protonmail.com>2022-01-17 15:21:45 -0600
committerIsidro Henoch <imhenoch@protonmail.com>2022-01-17 15:21:45 -0600
commitd91688765774ccb9153a5236edf359a8fa3a0f62 (patch)
tree5dda71a3762659f223a14e93cc51dd0e27d5a60a /androidApp/src/main/java/mx/trackermap/TrackerMap/android/map
parent76747c473656ecc4f63f28212326f90dc1e53643 (diff)
downloadetbsa-trackermap-mobile-d91688765774ccb9153a5236edf359a8fa3a0f62.tar.gz
etbsa-trackermap-mobile-d91688765774ccb9153a5236edf359a8fa3a0f62.tar.bz2
etbsa-trackermap-mobile-d91688765774ccb9153a5236edf359a8fa3a0f62.zip
Tries to fix the report map issues
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap/android/map')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt
index 17fc9d4..cd1778a 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt
@@ -127,6 +127,10 @@ class MapFragment : GlobeMapFragment() {
}
private fun clear(geofences: Boolean = false) {
+ if (mapControl == null) {
+ return
+ }
+
if (geofences) {
mapControl.removeObjects(
geofenceObjects,