[ios] Fixed regression: non-working KML and GPX import

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2023-12-17 23:37:20 +01:00 committed by Viktor Govako
parent 7fffca074f
commit 6c466032f9

View file

@ -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)