diff options
author | Mike Lockwood <lockwood@android.com> | 2010-02-02 11:41:52 -0500 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-02-02 11:41:52 -0500 |
commit | 271f9f172b241607b1ed39a7709c3ed47ee5dee7 (patch) | |
tree | ed12a67b3487768ba693115c40686b8f2d7af9bc /location/java | |
parent | 5310b36a3710f0e298b944a74759ae8ce3af755c (diff) | |
download | frameworks_base-271f9f172b241607b1ed39a7709c3ed47ee5dee7.zip frameworks_base-271f9f172b241607b1ed39a7709c3ed47ee5dee7.tar.gz frameworks_base-271f9f172b241607b1ed39a7709c3ed47ee5dee7.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: I7217dc5213ae9a5658ac81b0a14b61d3e36ca0f6
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'location/java')
-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 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; } |