Fix crash at MapViewTrackingUtilities
This commit is contained in:
parent
b40e45b627
commit
55e6dfaf4a
1 changed files with 3 additions and 1 deletions
|
@ -109,7 +109,9 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc
|
||||||
@Override
|
@Override
|
||||||
public void updateLocation(Location location) {
|
public void updateLocation(Location location) {
|
||||||
showViewAngle = false;
|
showViewAngle = false;
|
||||||
locationProvider = location.getProvider();
|
if (location != null) {
|
||||||
|
locationProvider = location.getProvider();
|
||||||
|
}
|
||||||
if (mapView != null) {
|
if (mapView != null) {
|
||||||
RotatedTileBox tb = mapView.getCurrentRotatedTileBox();
|
RotatedTileBox tb = mapView.getCurrentRotatedTileBox();
|
||||||
if (isMapLinkedToLocation() && location != null) {
|
if (isMapLinkedToLocation() && location != null) {
|
||||||
|
|
Loading…
Reference in a new issue