diff --git a/components/Dialogs/src/MDCAlertController.m b/components/Dialogs/src/MDCAlertController.m index 2edf6cbf51e..8a46ac1fd49 100644 --- a/components/Dialogs/src/MDCAlertController.m +++ b/components/Dialogs/src/MDCAlertController.m @@ -92,6 +92,10 @@ - (BOOL)isEqual:(id)object { [self.title isEqualToString:anotherAction.title] && self.emphasis == anotherAction.emphasis; } +- (NSUInteger)hash { + return self.title.hash ^ self.emphasis; +} + @end @interface MDCAlertController ()