Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
85e7a37b
Commit
85e7a37b
authored
Jan 25, 2015
by
Pierre SAGASPE
Committed by
Felix Paul Kühne
Jan 25, 2015
Browse files
oneDrive: fix display after login
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
7513bcf9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Sources/VLCCloudServicesTableViewController.m
View file @
85e7a37b
...
...
@@ -126,7 +126,7 @@
}
case
3
:
{
//OneDrive
BOOL
isAuthorized
=
[[
VLCOneDriveController
sharedInstance
]
activeSession
];
BOOL
isAuthorized
=
[[
VLCOneDriveController
sharedInstance
]
isAuthorized
];
cell
.
icon
.
image
=
[
UIImage
imageNamed
:
@"OneDrive"
];
cell
.
cloudTitle
.
text
=
@"OneDrive"
;
cell
.
cloudInformation
.
text
=
isAuthorized
?
NSLocalizedString
(
@"LOGGED_IN"
,
""
)
:
NSLocalizedString
(
@"LOGIN"
,
""
);
...
...
Sources/VLCOneDriveTableViewController.m
View file @
85e7a37b
...
...
@@ -47,6 +47,7 @@
{
[
super
viewWillAppear
:
animated
];
[
self
updateViewAfterSessionChange
];
self
.
authorizationInProgress
=
NO
;
}
#pragma mark - generic interface interaction
...
...
@@ -117,7 +118,11 @@
-
(
void
)
loginAction
:(
id
)
sender
{
[
_oneDriveController
login
];
if
(
!
[
_oneDriveController
isAuthorized
])
{
self
.
authorizationInProgress
=
YES
;
[
_oneDriveController
login
];
}
else
[
_oneDriveController
logout
];
}
#pragma mark - onedrive controller delegation
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment