From 6c466032f9ad88e03574a3cce05360cf6bac31a7 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Sun, 17 Dec 2023 23:37:20 +0100 Subject: [PATCH] [ios] Fixed regression: non-working KML and GPX import Signed-off-by: Alexander Borsuk --- iphone/Maps/Core/DeepLink/DeepLinkHandler.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift b/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift index 52ec3cae2a..a80d68ffc5 100644 --- a/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift +++ b/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift @@ -57,6 +57,12 @@ private func handleDeepLink(url: URL) -> Bool { LOG(.info, "handleDeepLink: \(url)") + if url.scheme == "file" { + // Import bookmarks. + DeepLinkParser.addBookmarksFile(url) + return true // Async parsing can fail later, but here we always return true. + } + // TODO(AB): Rewrite API so iOS and Android will call only one C++ method to clear/set API state. // This call is also required for DeepLinkParser.showMap, and it also clears old API points... let urlType = DeepLinkParser.parseAndSetApiURL(url)