summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlocation/java/com/android/internal/location/GpsLocationProvider.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/location/java/com/android/internal/location/GpsLocationProvider.java b/location/java/com/android/internal/location/GpsLocationProvider.java
index 2b4dab9..8b5f702 100755
--- a/location/java/com/android/internal/location/GpsLocationProvider.java
+++ b/location/java/com/android/internal/location/GpsLocationProvider.java
@@ -885,6 +885,7 @@ public class GpsLocationProvider extends ILocationProvider.Stub {
switch (status) {
case GPS_STATUS_SESSION_BEGIN:
mNavigating = true;
+ mEngineOn = true;
break;
case GPS_STATUS_SESSION_END:
mNavigating = false;
@@ -894,6 +895,7 @@ public class GpsLocationProvider extends ILocationProvider.Stub {
break;
case GPS_STATUS_ENGINE_OFF:
mEngineOn = false;
+ mNavigating = false;
break;
}