forked from organicmaps/organicmaps
[android] fix distance not shown on search results
Signed-off-by: Arnaud Vergnet <arnaud.vergnet@mailo.com>
This commit is contained in:
parent
153adf0e78
commit
eff622a962
2 changed files with 5 additions and 5 deletions
|
@ -288,10 +288,9 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
|||
|
||||
public void showSearch(String query)
|
||||
{
|
||||
closeSearchToolbar(false, true);
|
||||
if (mIsTabletLayout)
|
||||
{
|
||||
closeSearchToolbar(false, false);
|
||||
|
||||
final Bundle args = new Bundle();
|
||||
args.putString(SearchActivity.EXTRA_QUERY, query);
|
||||
replaceFragment(SearchFragment.class, args, null);
|
||||
|
|
|
@ -285,9 +285,6 @@ public class SearchFragment extends BaseMwmFragment
|
|||
updateFrames();
|
||||
updateResultsPlaceholder();
|
||||
|
||||
if (mInitialQuery != null)
|
||||
setQuery(mInitialQuery, false);
|
||||
|
||||
mToolbarController.activate();
|
||||
|
||||
SearchEngine.INSTANCE.addListener(this);
|
||||
|
@ -312,6 +309,10 @@ public class SearchFragment extends BaseMwmFragment
|
|||
{
|
||||
super.onResume();
|
||||
LocationHelper.INSTANCE.addListener(mLocationListener);
|
||||
if (mInitialQuery != null) {
|
||||
setQuery(mInitialQuery, false);
|
||||
mInitialQuery = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue