Browse Source

Network: Set prefersLargeTitles according to design

(closes #597)
Soomin Lee 5 years ago
parent
commit
6f39beb14f

+ 3 - 0
Sources/LocalNetworkConnectivity/VLCServerListViewController.m

@@ -197,6 +197,9 @@
 {
     [super viewWillAppear:animated];
     [_discoveryController startDiscovery];
+    if (@available(iOS 11.0, *)) {
+        self.navigationController.navigationBar.prefersLargeTitles = YES;
+    }
 }
 
 - (BOOL)shouldAutorotate

+ 4 - 0
Sources/VLCBoxTableViewController.m

@@ -114,6 +114,10 @@
     self.controller = _boxController;
     self.controller.delegate = self;
 
+    if (@available(iOS 11.0, *)) {
+        self.navigationController.navigationBar.prefersLargeTitles = NO;
+    }
+
     if (!_listOfFiles || _listOfFiles.count == 0)
         [self requestInformationForCurrentPath];
 }

+ 4 - 0
Sources/VLCCloudServicesTableViewController.m

@@ -72,6 +72,10 @@
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(authenticationSessionsChanged:) name:VLCOneDriveControllerSessionUpdated object:nil];
     [self.tableView reloadData];
     [super viewWillAppear:animated];
+
+    if (@available(iOS 11.0, *)) {
+        self.navigationController.navigationBar.prefersLargeTitles = YES;
+    }
 }
 
 - (void)authenticationSessionsChanged:(NSNotification *)notification

+ 4 - 0
Sources/VLCDropboxTableViewController.m

@@ -66,6 +66,10 @@
 {
     [super viewWillAppear:animated];
 
+    if (@available(iOS 11.0, *)) {
+        self.navigationController.navigationBar.prefersLargeTitles = NO;
+    }
+
     self.controller = [VLCDropboxController sharedInstance];
     self.controller.delegate = self;
 

+ 5 - 0
Sources/VLCGoogleDriveTableViewController.m

@@ -52,6 +52,11 @@
 - (void)viewWillAppear:(BOOL)animated
 {
     [super viewWillAppear:animated];
+
+    if (@available(iOS 11.0, *)) {
+        self.navigationController.navigationBar.prefersLargeTitles = NO;
+    }
+
     [self updateViewAfterSessionChange];
 }
 

+ 5 - 0
Sources/VLCOneDriveTableViewController.m

@@ -51,6 +51,11 @@
 - (void)viewWillAppear:(BOOL)animated
 {
     [super viewWillAppear:animated];
+
+    if (@available(iOS 11.0, *)) {
+        self.navigationController.navigationBar.prefersLargeTitles = NO;
+    }
+
     [self updateViewAfterSessionChange];
     self.authorizationInProgress = NO;
     [self prepareOneDriveControllerIfNeeded];