[ios] Fixed opening of https://omaps.app/ and om:// links on the cold start

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2021-11-09 22:54:24 +01:00 committed by Alexander Borsuk
parent 34435f505e
commit 647e72f756
2 changed files with 2 additions and 10 deletions

View file

@ -9,12 +9,6 @@
}
func applicationDidFinishLaunching(_ options: [UIApplication.LaunchOptionsKey : Any]? = nil) {
if let userActivityOptions = options?[.userActivityDictionary] as? [UIApplication.LaunchOptionsKey : Any],
let userActivityType = userActivityOptions[.userActivityType] as? String,
userActivityType == NSUserActivityTypeBrowsingWeb {
isLaunchedByDeeplink = true
}
if let launchDeeplink = options?[UIApplication.LaunchOptionsKey.url] as? URL {
isLaunchedByDeeplink = true
url = launchDeeplink

View file

@ -2135,9 +2135,6 @@ std::optional<place_page::Info> Framework::BuildPlacePageInfo(
place_page::BuildInfo const & buildInfo)
{
place_page::Info outInfo;
if (m_drapeEngine == nullptr)
return {};
outInfo.SetBuildInfo(buildInfo);
if (buildInfo.IsUserMarkMatchingEnabled())
@ -2212,7 +2209,8 @@ std::optional<place_page::Info> Framework::BuildPlacePageInfo(
FeatureID selectedFeature = buildInfo.m_featureId;
auto const isFeatureMatchingEnabled = buildInfo.IsFeatureMatchingEnabled();
if (buildInfo.IsTrackMatchingEnabled() && !buildInfo.m_isLongTap &&
// Using VisualParams inside FindTrackInTapPosition/GetDefaultTapRect requires drapeEngine.
if (m_drapeEngine != nullptr && buildInfo.IsTrackMatchingEnabled() && !buildInfo.m_isLongTap &&
!(isFeatureMatchingEnabled && selectedFeature.IsValid()))
{
auto const trackSelectionInfo = FindTrackInTapPosition(buildInfo);