Skip to content

Commit

Permalink
[Dialogs] Use API_AVAILABLE instead of #if defined (__IPHONE_10_0) etc
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 319032200
  • Loading branch information
andrewoverton authored and material-automation committed Jun 30, 2020
1 parent 97b1a1f commit 679abbe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/Dialogs/src/MDCAlertController.m
Original file line number Diff line number Diff line change
Expand Up @@ -606,17 +606,15 @@ - (void)actionButtonPressed:(id)button forEvent:(UIEvent *)event {

#pragma mark - Text View Delegate

#if defined(__IPHONE_10_0) && (__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_10_0)
- (BOOL)textView:(UITextView *)textView
shouldInteractWithURL:(NSURL *)URL
inRange:(NSRange)characterRange
interaction:(UITextItemInteraction)interaction {
interaction:(UITextItemInteraction)interaction API_AVAILABLE(ios(10.0)) {
if (self.attributedMessageAction != nil) {
return self.attributedMessageAction(URL, characterRange, interaction);
}
return YES;
}
#endif

#pragma mark - UIViewController

Expand Down

0 comments on commit 679abbe

Please sign in to comment.