Fix exception

This commit is contained in:
Victor Shcherb 2017-02-07 21:38:56 +02:00
parent 70471f77db
commit 6aa4c11969

View file

@ -437,7 +437,9 @@ public class QuickSearchCoordinatesFragment extends DialogFragment implements Os
dialogFragment.getAccessibilityAssistant().lockEvents();
updateCompassVisibility(coordsView, latLon, heading);
dialogFragment.getAccessibilityAssistant().unlockEvents();
dialogFragment.getNavigationInfo().updateTargetDirection(currentLatLon, heading.floatValue());
if(heading != null) {
dialogFragment.getNavigationInfo().updateTargetDirection(currentLatLon, heading.floatValue());
}
}
}