forked from organicmaps/organicmaps-tmp
[iOS] dont show empty wiki description in place page
https://jira.mail.ru/browse/MAPSME-12570
This commit is contained in:
parent
f943943d99
commit
d1e7c5386b
1 changed files with 5 additions and 3 deletions
|
@ -913,9 +913,11 @@ NSString * const kUserDefaultsLatLonAsDMSKey = @"UserDefaultsLatLonAsDMS";
|
|||
auto const row = canUseNetwork.CanUse() ? PromoCatalogRow::GuidesRequestError : PromoCatalogRow::GuidesNoInternetError;
|
||||
if (!api) {
|
||||
m_promoCatalogRows.push_back(row);
|
||||
m_sections.insert(m_sections.begin() + 1, Sections::Description);
|
||||
if (self.refreshPromoCallback) {
|
||||
self.refreshPromoCallback([NSIndexSet indexSetWithIndex:1]);
|
||||
if ([[self placeDescription] length] && ![[self bookmarkDescription] length]) {
|
||||
m_sections.insert(m_sections.begin() + 1, Sections::Description);
|
||||
if (self.refreshPromoCallback) {
|
||||
self.refreshPromoCallback([NSIndexSet indexSetWithIndex:1]);
|
||||
}
|
||||
}
|
||||
[Statistics logEvent:kStatPlacepageSponsoredError
|
||||
withParameters:@{
|
||||
|
|
Loading…
Add table
Reference in a new issue