MESSENGER-4482 fix feature banner link and add navigationbar

This commit is contained in:
JanNiklas Grabowski
2023-04-05 06:10:07 +00:00
committed by Arnfried Griesert
parent 0cceca235c
commit 9827bae79b
5 changed files with 36 additions and 66 deletions
@@ -3442,14 +3442,8 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
{
if (row == SHOW_NEW_FEATURES)
{
NSString *htmlFile = [[NSBundle mainBundle] pathForResource:BWIBuildSettings.shared.newFeaturesHTML ofType:@"html" inDirectory:nil];
// bwi: if enabled replace feature link and use file from document directory
if (BWIBuildSettings.shared.bwiReplaceFeatureLink) {
BwiNewFeatureHelper *featureHelper = [[BwiNewFeatureHelper alloc] init];
[featureHelper replaceFeatureHistoryLink];
NSURL *filePath = [featureHelper getDocumentDirectory];
htmlFile = [filePath path];
}
// bwi: replace link and show webview
NSString *htmlFile = BWIBuildSettings.shared.bwiFeatureHistoryFilePath;
WebViewViewController *webViewViewController = [[WebViewViewController alloc] initWithLocalHTMLFile: htmlFile];
webViewViewController.title = BWIL10n.bwiSettingsNewFeaturesHeader;
[self pushViewController:webViewViewController];