mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 14:43:43 +00:00
[map] [ios] disable category displaying for ios
Because it is displayed in the Edit cell on the Place Page Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
6c3c1af787
commit
e7524e5725
@@ -121,8 +121,11 @@ std::string Info::FormatSubtitle(bool withTypes, bool withMainType) const
|
|||||||
result += sv;
|
result += sv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// @todo(KK): Remove, when the category name will be displayed in the "Edit cell" on the Place Page on the specific platform.
|
||||||
|
#if !defined(TARGET_OS_IPHONE)
|
||||||
if (IsBookmark())
|
if (IsBookmark())
|
||||||
append(m_bookmarkCategoryName);
|
append(m_bookmarkCategoryName);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!withTypes)
|
if (!withTypes)
|
||||||
return result;
|
return result;
|
||||||
@@ -239,7 +242,10 @@ void Info::SetTitlesForBookmark()
|
|||||||
m_uiTitle = GetBookmarkName();
|
m_uiTitle = GetBookmarkName();
|
||||||
|
|
||||||
std::vector<std::string> subtitle;
|
std::vector<std::string> subtitle;
|
||||||
|
/// @todo(KK): Remove, when the category name will be displayed in the "edit" of the cell on the Place Page on the specific platform.
|
||||||
|
#if !defined(TARGET_OS_IPHONE)
|
||||||
subtitle.push_back(m_bookmarkCategoryName);
|
subtitle.push_back(m_bookmarkCategoryName);
|
||||||
|
#endif
|
||||||
if (!m_bookmarkData.m_featureTypes.empty())
|
if (!m_bookmarkData.m_featureTypes.empty())
|
||||||
subtitle.push_back(GetLocalizedFeatureType(m_bookmarkData.m_featureTypes));
|
subtitle.push_back(GetLocalizedFeatureType(m_bookmarkData.m_featureTypes));
|
||||||
m_uiSubtitle = strings::JoinStrings(subtitle, feature::kFieldsSeparator);
|
m_uiSubtitle = strings::JoinStrings(subtitle, feature::kFieldsSeparator);
|
||||||
@@ -258,7 +264,10 @@ void Info::SetCustomName(std::string const & name)
|
|||||||
void Info::SetTitlesForTrack(Track const & track)
|
void Info::SetTitlesForTrack(Track const & track)
|
||||||
{
|
{
|
||||||
m_uiTitle = track.GetName();
|
m_uiTitle = track.GetName();
|
||||||
|
/// @todo(KK): Remove, when the category name will be displayed in the "Edit cell" on the Place Page on the specific platform.
|
||||||
|
#if !defined(TARGET_OS_IPHONE)
|
||||||
m_uiSubtitle = m_bookmarkCategoryName;
|
m_uiSubtitle = m_bookmarkCategoryName;
|
||||||
|
#endif
|
||||||
|
|
||||||
std::vector<std::string> statistics;
|
std::vector<std::string> statistics;
|
||||||
auto const length = track.GetLengthMeters();
|
auto const length = track.GetLengthMeters();
|
||||||
|
|||||||
Reference in New Issue
Block a user