[android] Show search result on map immediately in cian case

This commit is contained in:
Александр Зацепин 2017-07-26 18:55:04 +03:00 committed by Arsentiy Milchakov
parent 491070a26c
commit 445ec553db
2 changed files with 4 additions and 0 deletions

View file

@ -105,6 +105,8 @@ class CategoriesAdapter extends RecyclerView.Adapter<CategoriesAdapter.ViewHolde
private String getSuggestionFromCategory(int resId)
{
if (resId == R.string.real_estate)
return "cian ";
return mResources.getString(resId) + ' ';
}

View file

@ -577,6 +577,8 @@ public class SearchFragment extends BaseMwmFragment
public void onCategorySelected(String category)
{
mToolbarController.setQuery(category);
if (!TextUtils.isEmpty(category) && category.equals("cian "))
showAllResultsOnMap();
}
private void updateFilterButton(boolean isHotel)