Skip to content

Commit e895040

Browse files
committed
fix a dismiss bug
1 parent aa2d944 commit e895040

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

SIAlertView/SIAlertView.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,11 @@ - (void)dismissAnimated:(BOOL)animated cleanup:(BOOL)cleanup
826826
self.didDismissHandler(self);
827827
}
828828

829+
// check if we should show next alert
830+
if (!isVisible) {
831+
return;
832+
}
833+
829834
if (nextAlertView) {
830835
[nextAlertView show];
831836
} else {

0 commit comments

Comments
 (0)