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:
authorYuri Gorshenin <y@maps.me>2017-06-21 16:44:36 +0300
committerYuri Gorshenin <mipt.vi002@gmail.com>2017-07-05 16:41:38 +0300
commit00d2363b63f96993ed8165c15f8c2e0ab1093def (patch)
tree45a866610097b3827590af9971a545967066fcc9 /ugc/api.cpp
parentb095454bb4b353047c2c02d9d5bb71262cdf0b2b (diff)
[ugc][android] FeatureID is fully exposed to UGC Api.
Diffstat (limited to 'ugc/api.cpp')
-rw-r--r--ugc/api.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/ugc/api.cpp b/ugc/api.cpp
index 543338dd77..550621162b 100644
--- a/ugc/api.cpp
+++ b/ugc/api.cpp
@@ -85,12 +85,14 @@ void Api::GetUGCImpl(FeatureID const & id, UGCCallback callback)
// TODO (@y, @mgsergio): retrieve static UGC
UGC ugc(Rating({}, {}), {}, {});
- auto const r = id.m_index % 3;
-// if (r == 1)
+ if (!id.IsValid())
+ {
+ GetPlatform().RunOnGuiThread([ugc, callback] { callback(ugc); });
+ return;
+ }
+
ugc = MakeTestUGC1();
-// else
-// ugc = MakeTestUGC2();
-
+
GetPlatform().RunOnGuiThread([ugc, callback] { callback(ugc); });
}