From 3f762ec0d574802b4d6d6d47a87ee64ba8eae881 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Sat, 20 Mar 2021 19:11:04 +0100 Subject: [PATCH] [ios] Always show FAQ until online support page will be ready Signed-off-by: Alexander Borsuk --- iphone/Maps/UI/Settings/MWMHelpController.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/iphone/Maps/UI/Settings/MWMHelpController.m b/iphone/Maps/UI/Settings/MWMHelpController.m index 89812f0a2c..9b6858d12a 100644 --- a/iphone/Maps/UI/Settings/MWMHelpController.m +++ b/iphone/Maps/UI/Settings/MWMHelpController.m @@ -24,14 +24,15 @@ static NSString * const kiOSEmail = @"ios@omaps.app"; self.title = L(@"help"); NSString * html; - if ([MWMFrameworkHelper isNetworkConnected]) { - NSURL *url = [NSURL URLWithString:@"https://support.omaps.app"]; - self.aboutViewController = [[WebViewController alloc] initWithUrl:url title:nil]; - } else { + // TODO: Uncomment when online version will be supported. +// if ([MWMFrameworkHelper isNetworkConnected]) { +// NSURL *url = [NSURL URLWithString:@"https://support.omaps.app"]; +// self.aboutViewController = [[WebViewController alloc] initWithUrl:url title:nil]; +// } else { NSString *path = [NSBundle.mainBundle pathForResource:@"faq" ofType:@"html"]; html = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil]; self.aboutViewController = [[WebViewController alloc] initWithHtml:html baseUrl:nil title:nil]; - } +// } self.aboutViewController.openInSafari = NO; UIView * aboutView = self.aboutViewController.view;