Commit 98da7bee authored by Felix Paul Kühne's avatar Felix Paul Kühne

cloud services table: correctly show current state of OneDrive

parent 1a92e35f
......@@ -17,6 +17,7 @@
#import "VLCGoogleDriveTableViewController.h"
#import "VLCBoxTableViewController.h"
#import "VLCOneDriveTableViewController.h"
#import "VLCOneDriveController.h"
#import "VLCDocumentPickerController.h"
#import "VLCCloudServiceCell.h"
......@@ -117,10 +118,9 @@
}
case 3: {
//OneDrive
//TODO: figure out right way to check session state
BOOL isAuthorized = NO;//[[OneDriveSDK sharedSDK] isAuthorized];
BOOL isAuthorized = [[VLCOneDriveController sharedInstance] activeSession];
cell.icon.image = [UIImage imageNamed:@"OneDrive"];
cell.cloudTitle.text = @"One Drive";
cell.cloudTitle.text = @"OneDrive";
cell.cloudInformation.text = isAuthorized ? NSLocalizedString(@"LOGGED_IN", "") : NSLocalizedString(@"LOGIN", "");
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment