marinofaggiana 5 years ago
parent
commit
357320b904

+ 1 - 1
iOSClient/Activity/NCActivity.swift

@@ -57,7 +57,7 @@ class NCActivity: UIViewController, DZNEmptyDataSetSource, DZNEmptyDataSetDelega
         
         // Color
         appDelegate.aspectNavigationControllerBar(self.navigationController?.navigationBar)
-        appDelegate.aspectTabBar(self.tabBarController?.tabBar, hidden: false)
+        appDelegate.aspectTabBar(self.tabBarController?.tabBar)
         if filterFileId == nil {
             tableView.backgroundColor = NCBrandColor.sharedInstance.backgroundView
         } else {

+ 1 - 1
iOSClient/AppDelegate.h

@@ -159,7 +159,7 @@
 // TabBarController
 - (void)createTabBarController:(UITabBarController *)tabBarController;
 - (void)aspectNavigationControllerBar:(UINavigationBar *)nav;
-- (void)aspectTabBar:(UITabBar *)tab hidden:(BOOL)hidden;
+- (void)aspectTabBar:(UITabBar *)tab;
 - (void)plusButtonVisibile:(BOOL)visible;
 - (void)selectedTabBarController:(NSInteger)index;
 - (NSString *)getTabBarControllerActiveServerUrl;

+ 3 - 5
iOSClient/AppDelegate.m

@@ -830,7 +830,7 @@ PKPushRegistry *pushRegistry;
         }
     }
     
-    [self aspectTabBar:tabBarController.tabBar hidden:NO];
+    [self aspectTabBar:tabBarController.tabBar];
     
     // File
     item = [tabBarController.tabBar.items objectAtIndex: k_tabBarApplicationIndexFile];
@@ -909,14 +909,12 @@ PKPushRegistry *pushRegistry;
     [nav setAlpha:1];
 }
 
-- (void)aspectTabBar:(UITabBar *)tab hidden:(BOOL)hidden
+- (void)aspectTabBar:(UITabBar *)tab
 {
     tab.translucent = NO;
     tab.barTintColor = NCBrandColor.sharedInstance.tabBar;
     tab.tintColor = NCBrandColor.sharedInstance.brandElement;
-    
-    tab.hidden = hidden;
-    
+        
     [tab setAlpha:1];
 }
 

+ 1 - 1
iOSClient/Favorites/CCFavorites.m

@@ -103,7 +103,7 @@
     
     // Color
     [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-    [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];
+    [appDelegate aspectTabBar:self.tabBarController.tabBar];
     self.tableView.backgroundColor = NCBrandColor.sharedInstance.backgroundView;
     self.tableView.separatorColor = NCBrandColor.sharedInstance.separator;
     

+ 1 - 1
iOSClient/Main/CCMain.m

@@ -171,7 +171,7 @@
     
     // Color
     [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-    [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];
+    [appDelegate aspectTabBar:self.tabBarController.tabBar];
     self.tableView.backgroundColor = NCBrandColor.sharedInstance.backgroundView;
     self.tableView.separatorColor = NCBrandColor.sharedInstance.separator;
 

+ 1 - 1
iOSClient/Main/CCMore.swift

@@ -190,7 +190,7 @@ class CCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
         
         // Aspect
         appDelegate.aspectNavigationControllerBar(self.navigationController?.navigationBar)
-        appDelegate.aspectTabBar(self.tabBarController?.tabBar, hidden: false)
+        appDelegate.aspectTabBar(self.tabBarController?.tabBar)
 
         // +
         appDelegate.plusButtonVisibile(true)

+ 1 - 1
iOSClient/Media/NCMedia.swift

@@ -108,7 +108,7 @@ class NCMedia: UIViewController, DropdownMenuDelegate, DZNEmptyDataSetSource, DZ
         
         // Aspect Color
         appDelegate.aspectNavigationControllerBar(self.navigationController?.navigationBar)
-        appDelegate.aspectTabBar(self.tabBarController?.tabBar, hidden: false)
+        appDelegate.aspectTabBar(self.tabBarController?.tabBar)
         collectionView.backgroundColor = NCBrandColor.sharedInstance.backgroundView
         
         // Configure Refresh Control

+ 1 - 1
iOSClient/Offline/NCOffline.swift

@@ -115,7 +115,7 @@ class NCOffline: UIViewController, UIGestureRecognizerDelegate, NCListCellDelega
         
         // Color
         appDelegate.aspectNavigationControllerBar(self.navigationController?.navigationBar)
-        appDelegate.aspectTabBar(self.tabBarController?.tabBar, hidden: false)
+        appDelegate.aspectTabBar(self.tabBarController?.tabBar)
         collectionView.backgroundColor = NCBrandColor.sharedInstance.backgroundView
         
         self.navigationItem.title = titleCurrentFolder

+ 1 - 1
iOSClient/Settings/CCAdvanced.m

@@ -168,7 +168,7 @@
     self.tableView.separatorColor = NCBrandColor.sharedInstance.separator;
 
     [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-    [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];
+    [appDelegate aspectTabBar:self.tabBarController.tabBar];
 }
 
 - (void)changeTheming

+ 1 - 1
iOSClient/Settings/CCManageAccount.m

@@ -346,7 +346,7 @@
     self.tableView.separatorColor = NCBrandColor.sharedInstance.separator;
 
     [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-    [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];    
+    [appDelegate aspectTabBar:self.tabBarController.tabBar];    
 }
 
 - (void)changeTheming

+ 1 - 1
iOSClient/Settings/CCManageAutoUpload.m

@@ -200,7 +200,7 @@
 
     // Color
     [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-    [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];
+    [appDelegate aspectTabBar:self.tabBarController.tabBar];
     
     // Request permission for camera roll access
     [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) {

+ 3 - 3
iOSClient/Settings/CCSettings.m

@@ -210,7 +210,7 @@
     self.tableView.separatorColor = NCBrandColor.sharedInstance.separator;
 
     [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-    [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];
+    [appDelegate aspectTabBar:self.tabBarController.tabBar];
 
     [self reloadForm];
 }
@@ -321,7 +321,7 @@
         [appDelegate settingDarkMode];
         
         [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-        [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];
+        [appDelegate aspectTabBar:self.tabBarController.tabBar];
         self.tableView.backgroundColor = NCBrandColor.sharedInstance.backgroundView;
         [self initializeForm];
         [self reloadForm];
@@ -350,7 +350,7 @@
             [appDelegate settingDarkMode];
             
             [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-            [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];
+            [appDelegate aspectTabBar:self.tabBarController.tabBar];
             self.tableView.backgroundColor = NCBrandColor.sharedInstance.backgroundView;
             [self initializeForm];
             [self reloadForm];

+ 1 - 1
iOSClient/Settings/NCManageEndToEndEncryption.m

@@ -178,7 +178,7 @@
     self.tableView.separatorColor = NCBrandColor.sharedInstance.separator;
     
     [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-    [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];
+    [appDelegate aspectTabBar:self.tabBarController.tabBar];
 }
 
 - (void)changeTheming

+ 1 - 1
iOSClient/Shares/NCShares.m

@@ -82,7 +82,7 @@
     
     // Color
     [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-    [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];
+    [appDelegate aspectTabBar:self.tabBarController.tabBar];
     self.tableView.backgroundColor = NCBrandColor.sharedInstance.backgroundView;
     self.tableView.separatorColor = NCBrandColor.sharedInstance.separator;
 

+ 1 - 1
iOSClient/Transfers/CCTransfers.m

@@ -95,7 +95,7 @@
         
     // Color
     [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-    [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];
+    [appDelegate aspectTabBar:self.tabBarController.tabBar];
     
     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.001 * NSEC_PER_SEC), dispatch_get_main_queue(), ^(void) {
         [self reloadDatasource:nil action:k_action_NULL];

+ 1 - 1
iOSClient/Trash/NCTrash.swift

@@ -88,7 +88,7 @@ class NCTrash: UIViewController, UIGestureRecognizerDelegate, NCTrashListCellDel
         
         // Color
         appDelegate.aspectNavigationControllerBar(self.navigationController?.navigationBar)
-        appDelegate.aspectTabBar(self.tabBarController?.tabBar, hidden: false)
+        appDelegate.aspectTabBar(self.tabBarController?.tabBar)
         collectionView.backgroundColor = NCBrandColor.sharedInstance.backgroundView
         
         self.navigationItem.title = titleCurrentFolder

+ 1 - 1
iOSClient/UploadFromOtherUpp/CCUploadFromOtherUpp.m

@@ -50,7 +50,7 @@
     
     // Color
     [appDelegate aspectNavigationControllerBar:self.navigationController.navigationBar];
-    [appDelegate aspectTabBar:self.tabBarController.tabBar hidden:NO];
+    [appDelegate aspectTabBar:self.tabBarController.tabBar];
 }
 
 - (void)didReceiveMemoryWarning