forked from upstream-mirrors/OpenTracks
merge heads
This commit is contained in:
@@ -686,6 +686,7 @@ public class TrackDataHub implements DataSourceListener {
|
|||||||
TrackDataListener.LocationState locationState;
|
TrackDataListener.LocationState locationState;
|
||||||
if (!hasProviderEnabled) {
|
if (!hasProviderEnabled) {
|
||||||
locationState = LocationState.DISABLED;
|
locationState = LocationState.DISABLED;
|
||||||
|
lastSeenLocation = null;
|
||||||
} else if (!hasFix) {
|
} else if (!hasFix) {
|
||||||
locationState = LocationState.NO_FIX;
|
locationState = LocationState.NO_FIX;
|
||||||
} else if (!hasGoodFix) {
|
} else if (!hasGoodFix) {
|
||||||
|
|||||||
@@ -289,6 +289,8 @@ public class MapFragment extends Fragment
|
|||||||
: R.string.gps_location_access);
|
: R.string.gps_location_access);
|
||||||
message = getString(R.string.gps_disabled, setting);
|
message = getString(R.string.gps_disabled, setting);
|
||||||
isGpsDisabled = true;
|
isGpsDisabled = true;
|
||||||
|
currentLocation = null;
|
||||||
|
updateCurrentLocation();
|
||||||
break;
|
break;
|
||||||
case NO_FIX:
|
case NO_FIX:
|
||||||
message = getString(R.string.gps_wait_for_signal);
|
message = getString(R.string.gps_wait_for_signal);
|
||||||
|
|||||||
Reference in New Issue
Block a user