Merge "Prevent startNavigating() call when GPS is off" into nyc-dev

This commit is contained in:
TreeHugger Robot
2016-06-21 21:47:25 +00:00
committed by Android (Google) Code Review

View File

@@ -1192,7 +1192,7 @@ public class GnssLocationProvider implements LocationProviderInterface {
}
if (DEBUG) Log.d(TAG, "setRequest " + mProviderRequest);
if (mProviderRequest.reportLocation && !mDisableGps) {
if (mProviderRequest.reportLocation && !mDisableGps && isEnabled()) {
// update client uids
updateClientUids(mWorkSource);