mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 05:43:37 +00:00
@@ -50,10 +50,10 @@ void HighlightResult(QueryTokens const & tokens, strings::UniString const & pref
|
|||||||
|
|
||||||
// Highlight Title (potentially including branch)
|
// Highlight Title (potentially including branch)
|
||||||
std::string titleForHighlighting = res.GetString();
|
std::string titleForHighlighting = res.GetString();
|
||||||
|
#if defined(OMIM_OS_IPHONE)
|
||||||
std::string const & branch = res.GetBranch();
|
std::string const & branch = res.GetBranch();
|
||||||
|
|
||||||
// On iOS we append branch text to the title for highlighting if it's not already present.
|
// On iOS we append branch text to the title for highlighting if it's not already present.
|
||||||
#if defined(OMIM_OS_IPHONE)
|
|
||||||
if (!branch.empty() && titleForHighlighting.find(branch) == std::string::npos)
|
if (!branch.empty() && titleForHighlighting.find(branch) == std::string::npos)
|
||||||
titleForHighlighting += " " + branch;
|
titleForHighlighting += " " + branch;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user