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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user