[android] Added resetting the hotel filter when search result is clicked

This commit is contained in:
Александр Зацепин 2017-12-12 15:46:55 +03:00 committed by Ilya Grechuhin
parent 18af2cbd0b
commit f79816ca8b
2 changed files with 10 additions and 4 deletions

View file

@ -185,6 +185,12 @@ public class SearchFilterController
}
}
public void resetFilter()
{
setFilter(null);
updateFilterButtonVisibility(false);
}
@Nullable
public BookingFilterParams getBookingFilterParams()
{

View file

@ -191,10 +191,7 @@ public class SearchFragment extends BaseMwmFragment
{
super.clear();
if (mFilterController != null)
{
mFilterController.setFilter(null);
mFilterController.updateFilterButtonVisibility(false);
}
mFilterController.resetFilter();
}
}
@ -552,6 +549,9 @@ public class SearchFragment extends BaseMwmFragment
RoutingController.get().onPoiSelected(point);
}
if (mFilterController != null)
mFilterController.resetFilter();
mToolbarController.deactivate();
if (getActivity() instanceof SearchActivity)