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
|
// true if we are enabled
|
||||||
private boolean mEnabled;
|
private boolean mEnabled;
|
||||||
// true if we are enabled for location updates
|
|
||||||
private boolean mLocationTracking;
|
|
||||||
|
|
||||||
// true if we have network connectivity
|
// true if we have network connectivity
|
||||||
private boolean mNetworkAvailable;
|
private boolean mNetworkAvailable;
|
||||||
@@ -475,10 +473,7 @@ public class GpsLocationProvider extends LocationProviderImpl {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enableLocationTracking(boolean enable) {
|
public void enableLocationTracking(boolean enable) {
|
||||||
if (mLocationTracking == enable) {
|
super.enableLocationTracking(enable);
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (enable) {
|
if (enable) {
|
||||||
mFixRequestTime = System.currentTimeMillis();
|
mFixRequestTime = System.currentTimeMillis();
|
||||||
mTTFF = 0;
|
mTTFF = 0;
|
||||||
@@ -487,12 +482,6 @@ public class GpsLocationProvider extends LocationProviderImpl {
|
|||||||
} else {
|
} else {
|
||||||
stopNavigating();
|
stopNavigating();
|
||||||
}
|
}
|
||||||
mLocationTracking = enable;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isLocationTracking() {
|
|
||||||
return mLocationTracking;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user