Просмотр исходного кода

CloudServicesTableVC: Cosmetic: Use VLCBoxController instead of BoxSDK

Edgar Fouillet 5 лет назад
Родитель
Сommit
ad2798bde9
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Sources/VLCCloudServicesTableViewController.m

+ 2 - 2
Sources/VLCCloudServicesTableViewController.m

@@ -97,7 +97,7 @@
 {
     int i = [[VLCDropboxController sharedInstance] isAuthorized] ? 1 : 0;
     i += [[VLCGoogleDriveController sharedInstance] isAuthorized] ? 1 : 0;
-    i += [[BoxSDK sharedSDK].OAuth2Session isAuthorized] ? 1 : 0;
+    i += [[VLCBoxController sharedInstance] isAuthorized] ? 1 : 0;
     i += [[VLCOneDriveController sharedInstance] isAuthorized] ? 1 : 0;
     return i;
 }
@@ -154,7 +154,7 @@
         }
         case 2: {
             //Box
-            BOOL isAuthorized = [[BoxSDK sharedSDK].OAuth2Session isAuthorized];
+            BOOL isAuthorized = [[VLCBoxController sharedInstance] isAuthorized];
             cell.icon.image = [UIImage imageNamed:@"BoxCell"];
             cell.cloudTitle.text = @"Box";
             cell.cloudInformation.text = isAuthorized ? NSLocalizedString(@"LOGGED_IN", "") : NSLocalizedString(@"LOGIN", "");