Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tizen/MapsWithMe/src/SearchForm.cpp')
-rw-r--r--tizen/MapsWithMe/src/SearchForm.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tizen/MapsWithMe/src/SearchForm.cpp b/tizen/MapsWithMe/src/SearchForm.cpp
index e46e9fc94f..fc344cfa4c 100644
--- a/tizen/MapsWithMe/src/SearchForm.cpp
+++ b/tizen/MapsWithMe/src/SearchForm.cpp
@@ -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()));