Skip to content

Commit 1405e19

Browse files
Nobodymaterial-automation
authored andcommitted
Inform the delegate that the action sheet is dismissed when the dismissal is issued from the accessibility gesture.
PiperOrigin-RevId: 366940774
1 parent 5d6cd34 commit 1405e19

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

components/ActionSheet/src/MDCActionSheetController.m

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,15 @@ - (BOOL)accessibilityPerformEscape {
306306
if (!self.dismissOnBackgroundTap) {
307307
return NO;
308308
}
309-
[self dismissViewControllerAnimated:YES completion:nil];
309+
[self
310+
dismissViewControllerAnimated:YES
311+
completion:^{
312+
if ([self.delegate
313+
respondsToSelector:@selector
314+
(actionSheetControllerDismissalAnimationCompleted:)]) {
315+
[self.delegate actionSheetControllerDismissalAnimationCompleted:self];
316+
}
317+
}];
310318
return YES;
311319
}
312320

0 commit comments

Comments
 (0)