summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorHarikrishnan Hariharan <hahariha@codeaurora.org>2016-06-17 23:52:52 +0530
committerSteve Kondik <steve@cyngn.com>2016-08-21 11:04:40 -0700
commitc2f177009eaad44508541710da17a626793d5c7d (patch)
tree91e83b066b0e079f8851198190dbab69de0ededb /services
parent473970bd41e45ecb313deb7dcf60a94077900d6b (diff)
downloadframeworks_base-c2f177009eaad44508541710da17a626793d5c7d.zip
frameworks_base-c2f177009eaad44508541710da17a626793d5c7d.tar.gz
frameworks_base-c2f177009eaad44508541710da17a626793d5c7d.tar.bz2
Prevent invocation of startNavigating() when GPS is off
When system comes back from idle state, GpsLocationProvider invokes startNavigating() even when GPS is turned off in settings. Change-Id: Ie6dbf60a743cce429ab83876a3cb80f7e4b0e0f6 CRs-Fixed: 1022372
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/location/GpsLocationProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/location/GpsLocationProvider.java b/services/core/java/com/android/server/location/GpsLocationProvider.java
index bdb77db..833c340 100644
--- a/services/core/java/com/android/server/location/GpsLocationProvider.java
+++ b/services/core/java/com/android/server/location/GpsLocationProvider.java
@@ -1118,7 +1118,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
}
if (DEBUG) Log.d(TAG, "setRequest " + mProviderRequest);
- if (mProviderRequest.reportLocation && !mDisableGps) {
+ if (mProviderRequest.reportLocation && !mDisableGps && isEnabled()) {
// update client uids
updateClientUids(mWorkSource);