Skip to content

Commit ee86759

Browse files
author
Kanishk Panwar
committed
parentcontroller fix
1 parent 47a5990 commit ee86759

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ADALiOS/ADALiOS/ADAuthenticationBroker.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ - (void)webAuthenticationDidCompleteWithURL:(NSURL *)endURL
367367
if ( nil != _authenticationViewController)
368368
{
369369
// Dismiss the authentication view and dispatch the completion block
370-
[[UIApplication adCurrentViewController] dismissViewControllerAnimated:YES completion:^{
370+
[parentController dismissViewControllerAnimated:YES completion:^{
371371
[self dispatchCompletionBlock:nil URL:endURL];
372372
}];
373373
}
@@ -390,7 +390,7 @@ - (void)webAuthenticationDidFailWithError:(NSError *)error
390390
if ( nil != _authenticationViewController)
391391
{
392392
// Dismiss the authentication view and dispatch the completion block
393-
[[UIApplication adCurrentViewController] dismissViewControllerAnimated:YES completion:^{
393+
[parentController dismissViewControllerAnimated:YES completion:^{
394394
[self dispatchCompletionBlock:adError URL:nil];
395395
}];
396396
}

0 commit comments

Comments
 (0)