MESSENGER-1678 add webview navigation policy

This commit is contained in:
JanNiklas Grabowski
2023-05-25 14:32:54 +00:00
committed by Frank Rotermund
parent b76b4e0803
commit 99d75ecf01
4 changed files with 22 additions and 30 deletions
+3 -18
View File
@@ -3302,21 +3302,11 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
}
else if (row == ABOUT_COPYRIGHT_INDEX)
{
WebViewViewController *webViewViewController = [[WebViewViewController alloc] initWithURL:BWIBuildSettings.shared.applicationCopyrightUrlString];
webViewViewController.title = [BWIL10n settingsCopyright];
[webViewViewController vc_setLargeTitleDisplayMode:UINavigationItemLargeTitleDisplayModeNever];
[self pushViewController:webViewViewController];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:BWIBuildSettings.shared.applicationCopyrightUrlString] options:@{} completionHandler:nil];
}
else if (row == ABOUT_ACCEPTABLE_USE_INDEX)
{
WebViewViewController *webViewViewController = [[WebViewViewController alloc] initWithURL:BuildSettings.applicationAcceptableUsePolicyUrlString];
webViewViewController.title = [VectorL10n settingsAcceptableUse];
[webViewViewController vc_setLargeTitleDisplayMode:UINavigationItemLargeTitleDisplayModeNever];
[self pushViewController:webViewViewController];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:BuildSettings.applicationAcceptableUsePolicyUrlString] options:@{} completionHandler:nil];
}
else if (row == ABOUT_SUPPORT_INDEX)
{
@@ -3331,12 +3321,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
}
else if (row == ABOUT_PRIVACY_INDEX)
{
WebViewViewController *webViewViewController = [[WebViewViewController alloc] initWithURL:BWIBuildSettings.shared.applicationPrivacyPolicyUrlString];
webViewViewController.title = [VectorL10n settingsPrivacyPolicy];
[webViewViewController vc_setLargeTitleDisplayMode:UINavigationItemLargeTitleDisplayModeNever];
[self pushViewController:webViewViewController];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:BWIBuildSettings.shared.applicationPrivacyPolicyUrlString] options:@{} completionHandler:nil];
}
else if (row == ABOUT_THIRD_PARTY_INDEX)
{