Skip to content

Commit

Permalink
internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 313628801
  • Loading branch information
Nobody authored and material-automation committed May 28, 2020
1 parent f4fd6d0 commit abde17e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/ActionSheet/src/MDCActionSheetController.m
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,15 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
return cell;
}

- (void)tableView:(UITableView *)tableView
willDisplayCell:(nonnull UITableViewCell *)cell
forRowAtIndexPath:(nonnull NSIndexPath *)indexPath {
if ([self.delegate respondsToSelector:@selector(actionSheetController:
willDisplayView:forRowAtIndexPath:)]) {
[self.delegate actionSheetController:self willDisplayView:cell forRowAtIndexPath:indexPath];
}
}

- (void)setContentEdgeInsets:(UIEdgeInsets)contentEdgeInsets {
if (UIEdgeInsetsEqualToEdgeInsets(_contentEdgeInsets, contentEdgeInsets)) {
return;
Expand Down
7 changes: 7 additions & 0 deletions components/ActionSheet/src/MDCActionSheetControllerDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@
Tells the delegate that the action sheet was dismissed.
*/
- (void)actionSheetControllerDidDismiss:(nonnull MDCActionSheetController *)actionSheetController;

/**
Tells the delegate that the action sheet will display a view.
*/
- (void)actionSheetController:(nonnull MDCActionSheetController *)actionSheetController
willDisplayView:(nonnull UIView *)view
forRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
@end

0 comments on commit abde17e

Please sign in to comment.