Skip to content

Commit

Permalink
BUGFIX: fixed relogin crash on ios9 when option controller is presented
Browse files Browse the repository at this point in the history
  • Loading branch information
VilemKurz committed Jan 2, 2016
1 parent 2d174c2 commit ff124f3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Classes/ShareKit/Core/Base Sharer Classes/SHKSharer.m
Original file line number Diff line number Diff line change
Expand Up @@ -988,10 +988,14 @@ - (void)shouldReloginWithPendingAction:(SHKSharerPendingAction)action
if (action == SHKPendingShare) {

if (self.curOptionController) {

NSUInteger formIndex = [self.viewControllers count] - 2;
NSAssert([self.viewControllers[formIndex] isKindOfClass:[SHKFormController class]], @"topViewController must be SHKFormController now!");
SHKFormController *form = (SHKFormController *)self.viewControllers[formIndex];
[self popViewControllerAnimated:NO];//dismiss option controller
NSAssert([[self topViewController] isKindOfClass:[SHKFormController class]], @"topViewController must be SHKFormController now!");
[self updateItemWithForm:(SHKFormController *)self.topViewController];
}

[self updateItemWithForm:form];
}
}

self.pendingAction = action;
Expand Down

0 comments on commit ff124f3

Please sign in to comment.