Skip to content

Commit 851b7a5

Browse files
authored
Fix banner dismiss (#535)
1 parent eeae0c9 commit 851b7a5

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

LeanplumSDK/LeanplumSDK/Classes/MessageTemplates/ViewControllers/LPWebInterstitialViewController.m

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -425,14 +425,6 @@ - (void)updateLayout
425425

426426
- (void)dismiss:(BOOL)animated
427427
{
428-
if (self.isBanner) {
429-
[self didMoveToParentViewController:nil];
430-
[self.view removeFromSuperview];
431-
[self removeFromParentViewController];
432-
[self.context actionDismissed];
433-
return;
434-
}
435-
436428
if (self.navigationController) {
437429
[self.navigationController dismissViewControllerAnimated:animated completion:^{
438430
[self.context actionDismissed];
@@ -443,17 +435,6 @@ - (void)dismiss:(BOOL)animated
443435
}
444436

445437
-(void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion {
446-
if (self.isBanner) {
447-
[self didMoveToParentViewController:nil];
448-
[self.view removeFromSuperview];
449-
[self removeFromParentViewController];
450-
[self.context actionDismissed];
451-
if (completion) {
452-
completion();
453-
}
454-
return;
455-
}
456-
457438
[super dismissViewControllerAnimated:flag completion:^{
458439
[self.context actionDismissed];
459440
if (completion) {

0 commit comments

Comments
 (0)