Merge "Prevent startNavigating() call when GPS is off" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
472224cd81
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user