commit | 5e0b43138d24f7ad1a5a0dad5554484eb498d308 | [log] [tgz] |
---|---|---|
author | Dante Russo <drusso@codeaurora.org> | Mon Jun 20 11:11:59 2016 -0700 |
committer | Aarthi Thiruvengadam <athiru@google.com> | Tue Jun 21 09:21:57 2016 -0700 |
tree | 50fe327ba92dba0be7ec9fc87913b20f4dcb1504 | |
parent | acc21f572dfb88f8fa08ea95c77c5ce212b86efb [diff] |
Prevent startNavigating() call when GPS is off When system comes back from idle state, GnssLocationProvider invokes startNavigating() even when GPS is turned off in settings. Bug: 29512509 Change-Id: Ifcc6a06d698f65f868d18244f7166663ab57f57e CRs-Fixed: 1022372
diff --git a/services/core/java/com/android/server/location/GnssLocationProvider.java b/services/core/java/com/android/server/location/GnssLocationProvider.java index 6b916be..2fc14ec 100644 --- a/services/core/java/com/android/server/location/GnssLocationProvider.java +++ b/services/core/java/com/android/server/location/GnssLocationProvider.java
@@ -1192,7 +1192,7 @@ } if (DEBUG) Log.d(TAG, "setRequest " + mProviderRequest); - if (mProviderRequest.reportLocation && !mDisableGps) { + if (mProviderRequest.reportLocation && !mDisableGps && isEnabled()) { // update client uids updateClientUids(mWorkSource);