am eedf815: location: Remove redundant mLocationTracking field from GpsL
Merge commit 'eedf815a2bd44c365a6885553a52cd2fcbfdce8c' * commit 'eedf815a2bd44c365a6885553a52cd2fcbfdce8c': location: Remove redundant mLocationTracking field from GpsLocationProvider
This commit is contained in:
committed by
The Android Open Source Project
commit
8749fecd99
@@ -153,8 +153,6 @@ public class GpsLocationProvider extends LocationProviderImpl {
|
||||
|
||||
// true if we are enabled
|
||||
private boolean mEnabled;
|
||||
// true if we are enabled for location updates
|
||||
private boolean mLocationTracking;
|
||||
|
||||
// true if we have network connectivity
|
||||
private boolean mNetworkAvailable;
|
||||
@@ -475,10 +473,7 @@ public class GpsLocationProvider extends LocationProviderImpl {
|
||||
|
||||
@Override
|
||||
public void enableLocationTracking(boolean enable) {
|
||||
if (mLocationTracking == enable) {
|
||||
return;
|
||||
}
|
||||
|
||||
super.enableLocationTracking(enable);
|
||||
if (enable) {
|
||||
mFixRequestTime = System.currentTimeMillis();
|
||||
mTTFF = 0;
|
||||
@@ -487,12 +482,6 @@ public class GpsLocationProvider extends LocationProviderImpl {
|
||||
} else {
|
||||
stopNavigating();
|
||||
}
|
||||
mLocationTracking = enable;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLocationTracking() {
|
||||
return mLocationTracking;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user