[android] Fixed booking filtration in viewport on tablet

This commit is contained in:
Александр Зацепин 2018-02-27 15:18:05 +03:00 committed by Aleksandr Zatsepin
parent eae2b1e774
commit a582b68757
4 changed files with 9 additions and 1 deletions

View file

@ -572,6 +572,9 @@ extern "C"
eparams.m_onResults = bind(&OnResults, _1, _2, timestamp, isMapAndTable,
false /* hasPosition */, 0.0 /* lat */, 0.0 /* lon */);
eparams.m_hotelsFilter = vparams.m_hotelsFilter;
eparams.m_bookingFilterParams.m_params = g_lastBookingFilterParams;
eparams.m_bookingFilterParams.m_callback = bind(&OnBookingFilterResults, _1, _2);
if (g_framework->NativeFramework()->SearchEverywhere(eparams))
g_queryTimestamp = timestamp;
}

View file

@ -610,7 +610,10 @@ public class MwmActivity extends BaseMwmFragmentActivity
private void runSearch()
{
// The previous search should be cancelled before the new one is started, since previous search
// results are no longer needed.
SearchEngine.cancel();
SearchEngine.searchInteractive(mSearchController.getQuery(), System.nanoTime(),
false /* isMapAndTable */,
mFilterController != null ? mFilterController.getFilter() : null,

View file

@ -610,6 +610,8 @@ public class SearchFragment extends BaseMwmFragment
private void runSearch()
{
// The previous search should be cancelled before the new one is started, since previous search
// results are no longer needed.
SearchEngine.cancel();
HotelsFilter hotelsFilter = null;

View file

@ -432,7 +432,7 @@ void Api::GetHotelInfo(string const & hotelId, string const & lang,
}
catch (my::Json::Exception const & e)
{
LOG(LERROR, ("Failed to parse json:", result, e.what()));
LOG(LERROR, ("Failed to parse json:", hotelId, result, e.what()));
ClearHotelInfo(info);
}