ios/Mobile/DocumentViewController.mm | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit 6890d2fdaaa8671c335dfbdbf157aa153a1811a2 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Mon Mar 23 14:39:27 2020 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Mon Mar 23 17:33:45 2020 +0100 ios: fix opening hyperlinks This was added in commit 2174206de1a8f5a87efef934b208c8b95db03447 (android: Don't hang after returning from a hyperlink., 2020-02-14), but the new command was only handled on Android. Handle HYPERLINK on iOS, too. Change-Id: I8c942c1a64c8a52462a749989e312d0d9899a841 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90917 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tor Lillqvist <t...@collabora.com> diff --git a/ios/Mobile/DocumentViewController.mm b/ios/Mobile/DocumentViewController.mm index 3bd967675..7bd3bca6d 100644 --- a/ios/Mobile/DocumentViewController.mm +++ b/ios/Mobile/DocumentViewController.mm @@ -441,6 +441,14 @@ static IMP standardImpOfInputAccessoryView = nil; }]; return; + } else if ([message.body hasPrefix:@"HYPERLINK"]) { + NSArray *messageBodyItems = [message.body componentsSeparatedByString:@" "]; + if ([messageBodyItems count] >= 2) { + NSURL *url = [[NSURL alloc] initWithString:messageBodyItems[1]]; + UIApplication *application = [UIApplication sharedApplication]; + [application openURL:url options:@{} completionHandler:nil]; + return; + } } const char *buf = [message.body UTF8String]; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits