diff options
author | Mike Lockwood <lockwood@android.com> | 2010-02-02 11:41:52 -0500 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-02-02 13:26:52 -0500 |
commit | 8ab11f87acf01b830ad0db46ec549406b33c39de (patch) | |
tree | 462c3dc1cc93b608abe6101bb1abea9081e734e0 | |
parent | c2a6738215af95bc50639e43c8f9291a0d521b37 (diff) | |
download | frameworks_base-8ab11f87acf01b830ad0db46ec549406b33c39de.zip frameworks_base-8ab11f87acf01b830ad0db46ec549406b33c39de.tar.gz frameworks_base-8ab11f87acf01b830ad0db46ec549406b33c39de.tar.bz2 |
Fix for GPS engines without separate session and engine status events.
GPS_STATUS_SESSION_BEGIN now implies GPS_STATUS_ENGINE_ON
and GPS_STATUS_ENGINE_OFF now implies GPS_STATUS_SESSION_END.
Change-Id: Ifeeb1d5094d1e7304974b7c3ac27dd83b1e65bca
Signed-off-by: Mike Lockwood <lockwood@android.com>
-rwxr-xr-x | location/java/com/android/internal/location/GpsLocationProvider.java | 2 |
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 134756e..1fe3d05 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; } |