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();