From aaa5a94dd23f446b5d5406c175bd37da14f6e630 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Tue, 1 Nov 2016 12:13:27 +0300 Subject: [PATCH] Fix quick search crash --- .../src/net/osmand/plus/search/QuickSearchDialogFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java index 012cf831e8..9e48b47075 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java @@ -479,13 +479,13 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC useMapCenter = false; centerLatLon = null; updateUseMapCenterUI(); - startLocationUpdate(); LatLon centerLatLon = new LatLon(location.getLatitude(), location.getLongitude()); SearchSettings ss = searchUICore.getSearchSettings().setOriginalLocation( new LatLon(centerLatLon.getLatitude(), centerLatLon.getLongitude())); searchUICore.updateSettings(ss); updateClearButtonAndHint(); updateClearButtonVisibility(true); + startLocationUpdate(); } updateToolbarButton(); }