diff options
author | Yuri Gorshenin <y@maps.me> | 2017-06-21 16:44:36 +0300 |
---|---|---|
committer | Yuri Gorshenin <mipt.vi002@gmail.com> | 2017-07-05 16:41:38 +0300 |
commit | 00d2363b63f96993ed8165c15f8c2e0ab1093def (patch) | |
tree | 45a866610097b3827590af9971a545967066fcc9 /ugc/api.cpp | |
parent | b095454bb4b353047c2c02d9d5bb71262cdf0b2b (diff) |
[ugc][android] FeatureID is fully exposed to UGC Api.
Diffstat (limited to 'ugc/api.cpp')
-rw-r--r-- | ugc/api.cpp | 12 |
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); }); } |