Commit 213b8ff3 authored by Tobias's avatar Tobias Committed by Felix Paul Kühne

OneDrive support: don't assume that delegate is a view controller change login...

OneDrive support: don't assume that delegate is a view controller change login method signature to pass the view controller which should present the LiveSDK login view controller
parent 2f08666e
......@@ -23,7 +23,7 @@
+ (VLCOneDriveController *)sharedInstance;
- (void)login;
- (void)loginWithViewController:(UIViewController*)presentingViewController;
- (void)downloadObject:(VLCOneDriveObject *)object;
......
......@@ -79,9 +79,9 @@
return _activeSession;
}
- (void)login
- (void)loginWithViewController:(UIViewController *)presentingViewController
{
[_liveClient login:self.delegate
[_liveClient login:presentingViewController
scopes:_liveScopes
delegate:self
userState:@"login"];
......
......@@ -125,7 +125,7 @@
{
if (![_oneDriveController isAuthorized]) {
self.authorizationInProgress = YES;
[_oneDriveController login];
[_oneDriveController loginWithViewController:self];
} else
[_oneDriveController logout];
}
......
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