Skip to content

Commit

Permalink
fix: ANLSPI-18506 crash when dismiss action sheet triggered by popove…
Browse files Browse the repository at this point in the history
…r dimming view
  • Loading branch information
YoloMao committed May 23, 2024
1 parent 36802f1 commit cd7f2e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ NS_ASSUME_NONNULL_BEGIN

- (void)growing_dismissAnimated:(BOOL)animated
triggeringAction:(UIAlertAction *)action
triggeredByPopoverDimmingView:(UIView *)view
triggeredByPopoverDimmingView:(BOOL)isTriggeredByPopoverDimmingView
dismissCompletion:(id)completion;

+ (nullable UIAlertAction *)growing_actionForActionView:(UIView *)actionView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ - (void)growing_dismissAnimated:(BOOL)animated triggeringAction:(UIAlertAction *

- (void)growing_dismissAnimated:(BOOL)animated
triggeringAction:(UIAlertAction *)action
triggeredByPopoverDimmingView:(UIView *)view
triggeredByPopoverDimmingView:(BOOL)isTriggeredByPopoverDimmingView
dismissCompletion:(id)completion {
[self growing_sendClickEventForAction:action];
if (completion) {
[self growing_sendClickEventForAction:action];
}

[self growing_dismissAnimated:animated
triggeringAction:action
triggeredByPopoverDimmingView:view
triggeredByPopoverDimmingView:isTriggeredByPopoverDimmingView
dismissCompletion:completion];
}

Expand Down

0 comments on commit cd7f2e0

Please sign in to comment.