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:
authorSergey Pisarchik <pisarchik@mapswithme.com>2014-07-24 15:18:03 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:22:12 +0300
commite30ee324f1ee896ecee920d3b6f7304b430a5544 (patch)
tree28ee71664d3d6d717e8e0e3b9fa4598b4c526369 /tizen/MapsWithMe
parent3d88d1ca71f7b11063ca3ec62d4d14a2292f3f05 (diff)
[Tizen] Enable interactive search.
Diffstat (limited to 'tizen/MapsWithMe')
-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()));