From 3b80b6f6a49bc5a9e6ff5d5e3ac5ae8607c05269 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 28 Jul 2016 21:03:01 +0200 Subject: [PATCH] Fix dialog --- .../src/net/osmand/plus/search/QuickSearchDialogFragment.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java index 52e199465a..9e28a498f0 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java @@ -382,12 +382,10 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC } private void setupSearch(final MapActivity mapActivity) { - final OsmandApplication app = mapActivity.getMyApplication(); - // Setup search core String locale = app.getSettings().MAP_PREFERRED_LOCALE.get(); - searchUICore = app.getSearchUICore(); + searchUICore = app.getSearchUICore().getCore(); searchUICore.resetPhrase(); location = app.getLocationProvider().getLastKnownLocation();