diff --git a/phoneClients/android/.idea/workspace.xml b/phoneClients/android/.idea/workspace.xml
index dfd266c..b75b345 100644
--- a/phoneClients/android/.idea/workspace.xml
+++ b/phoneClients/android/.idea/workspace.xml
@@ -40,7 +40,13 @@
-
+
+
+
+
+
+
+
@@ -102,26 +108,24 @@
-
+
-
-
-
-
-
-
+
+
+
-
+
-
-
+
+
-
+
+
@@ -937,14 +941,14 @@
-
+
-
-
+
+
@@ -990,6 +994,7 @@
+
@@ -1152,6 +1157,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1163,7 +1198,6 @@
-
@@ -1414,7 +1448,7 @@
-
+
@@ -1428,7 +1462,6 @@
-
@@ -1444,6 +1477,7 @@
+
@@ -1504,7 +1538,6 @@
-
@@ -1512,10 +1545,7 @@
-
-
-
-
+
@@ -1530,10 +1560,7 @@
-
-
-
-
+
@@ -1541,10 +1568,7 @@
-
-
-
-
+
@@ -1559,10 +1583,7 @@
-
-
-
-
+
@@ -1584,10 +1605,7 @@
-
-
-
-
+
@@ -1633,11 +1651,7 @@
-
-
-
-
-
+
@@ -1645,10 +1659,7 @@
-
-
-
-
+
@@ -1656,11 +1667,7 @@
-
-
-
-
-
+
@@ -1668,10 +1675,7 @@
-
-
-
-
+
@@ -1679,11 +1683,7 @@
-
-
-
-
-
+
@@ -1691,10 +1691,7 @@
-
-
-
-
+
@@ -1702,11 +1699,7 @@
-
-
-
-
-
+
@@ -1714,10 +1707,7 @@
-
-
-
-
+
@@ -1725,11 +1715,7 @@
-
-
-
-
-
+
@@ -1878,25 +1864,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1916,27 +1883,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
diff --git a/phoneClients/android/app/src/main/java/com/websmithing/gpstracker/LocationService.java b/phoneClients/android/app/src/main/java/com/websmithing/gpstracker/LocationService.java
index 0f38f13..0531c22 100644
--- a/phoneClients/android/app/src/main/java/com/websmithing/gpstracker/LocationService.java
+++ b/phoneClients/android/app/src/main/java/com/websmithing/gpstracker/LocationService.java
@@ -56,7 +56,7 @@
startTracking();
}
- return START_STICKY;
+ return START_NOT_STICKY;
}
private void startTracking() {
@@ -207,10 +207,16 @@
@Override
public void onDisconnected() {
Log.e(TAG, "onDisconnected");
+
+ stopLocationUpdates();
+ stopSelf();
}
@Override
public void onConnectionFailed(ConnectionResult connectionResult) {
Log.e(TAG, "onConnectionFailed");
+
+ stopLocationUpdates();
+ stopSelf();
}
}
diff --git a/phoneClients/android/build/intermediates/model_data.bin b/phoneClients/android/build/intermediates/model_data.bin
index 959946e..52a79f5 100644
--- a/phoneClients/android/build/intermediates/model_data.bin
+++ b/phoneClients/android/build/intermediates/model_data.bin
Binary files differ
diff --git a/phoneClients/ios/GpsTracker/WSViewController.m b/phoneClients/ios/GpsTracker/WSViewController.m
index 1c8272a..c17769d 100644
--- a/phoneClients/ios/GpsTracker/WSViewController.m
+++ b/phoneClients/ios/GpsTracker/WSViewController.m
@@ -50,7 +50,6 @@
BOOL appIDIsSet = [[NSUserDefaults standardUserDefaults] boolForKey:@"appIDIsSet"];
-
if (!appIDIsSet) {
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"appIDIsSet"];
[[NSUserDefaults standardUserDefaults] setObject:[[NSUUID UUID] UUIDString] forKey:@"appID"];
diff --git a/servers/php/js/maps.js b/servers/php/js/maps.js
index 8068697..b3882a4 100644
--- a/servers/php/js/maps.js
+++ b/servers/php/js/maps.js
@@ -385,9 +385,9 @@
function deleteRoute() {
if (hasMap()) {
- // comment out these two lines to get delete working
- // confirm("Disabled here on test website, this works fine.");
- // return false;
+ // comment out these two lines to get delete working
+ confirm("Disabled here on test website, this works fine.");
+ return false;
var answer = confirm("This will permanently delete this route\n from the database. Do you want to delete?");
if (answer){