location: Remove redundant mLocationTracking field from GpsLocationProvider
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@ -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