diff options
author | Dmitry Donskoy <donskdmitry@mail.ru> | 2018-07-16 15:50:07 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2018-07-20 14:51:41 +0300 |
commit | c41faf2af3130aa0c727673857c5dd175d711e72 (patch) | |
tree | 8642c1eea60bf715368d393b40c2935d39a8e0d2 /android/src/com/mapswithme/maps/search/FilterFragment.java | |
parent | 1376bec5f390e9e8d0979fe09f600cf4e1412772 (diff) |
[android] Fixed offline mode hotels filters
Diffstat (limited to 'android/src/com/mapswithme/maps/search/FilterFragment.java')
-rw-r--r-- | android/src/com/mapswithme/maps/search/FilterFragment.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/android/src/com/mapswithme/maps/search/FilterFragment.java b/android/src/com/mapswithme/maps/search/FilterFragment.java index e286b508b1..ead152d808 100644 --- a/android/src/com/mapswithme/maps/search/FilterFragment.java +++ b/android/src/com/mapswithme/maps/search/FilterFragment.java @@ -125,6 +125,10 @@ public class FilterFragment extends BaseMwmToolbarFragment } }; + @SuppressWarnings("NullableProblems") + @NonNull + private BookingFilterParams.Factory mFilterParamsFactory; + @Override public void onAttach(Context context) { @@ -135,6 +139,8 @@ public class FilterFragment extends BaseMwmToolbarFragment if (context instanceof Listener) mListener = (Listener) context; + + mFilterParamsFactory = new BookingFilterParams.Factory(); } @Override @@ -214,9 +220,10 @@ public class FilterFragment extends BaseMwmToolbarFragment return; HotelsFilter filter = populateFilter(); - mListener.onFilterApply(filter, new BookingFilterParams(mCheckinDate.getTimeInMillis(), - mCheckoutDate.getTimeInMillis(), - BookingFilterParams.Room.DEFAULT)); + BookingFilterParams params = mFilterParamsFactory.createParams(mCheckinDate.getTimeInMillis(), + mCheckoutDate.getTimeInMillis(), + BookingFilterParams.Room.DEFAULT); + mListener.onFilterApply(filter, params); Statistics.INSTANCE.trackFilterEvent(Statistics.EventName.SEARCH_FILTER_APPLY, Statistics.EventParam.HOTEL); } |