[Tizen] Enable interactive search.

This commit is contained in:
Sergey Pisarchik 2014-07-24 14:18:03 +03:00 committed by Alex Zolotarev
parent 3d88d1ca71
commit e30ee324f1

View file

@ -284,7 +284,16 @@ void SearchForm::OnKeypadActionPerformed (Tizen::Ui::Control & source, Tizen::Ui
{
if (keypadAction == KEYPAD_ACTION_SEARCH)
{
GetFramework()->ShowAllSearchResults();
search::SearchParams params;
params.m_query = FromTizenString(GetSearchString());
Tizen::Locales::LanguageCode language;
if (m_searchBar->GetCurrentLanguage(language) == E_SUCCESS)
params.SetInputLanguage(CodeFromISO369_2to_1(GetLanguageCode(language)));
double lat, lon;
GetFramework()->GetCurrentPosition(lat, lon);
params.SetPosition(lat, lon);
GetFramework()->StartInteractiveSearch(params);
ArrayList * pList = new ArrayList;
pList->Construct();
pList->Add(new String(GetSearchString()));