Commit cb1ed6d3 authored by David Jean's avatar David Jean Committed by Commit Bot

[ios] Remove animation of manual fallback cell buttons

Change-Id: Ic5e843b077e36e54e9ce107d865084c8bf6f4258
Reviewed-on: https://chromium-review.googlesource.com/c/1350612Reviewed-by: default avatarJavier Ernesto Flores Robles <javierrobles@chromium.org>
Commit-Queue: David Jean <djean@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610819}
parent fbf85a0c
......@@ -14,15 +14,8 @@
- (void)setHighlighted:(BOOL)highlighted {
[super setHighlighted:highlighted];
auto animations = ^{
CGFloat alpha = highlighted ? 0.07 : 0;
self.backgroundColor = [UIColor colorWithWhite:0 alpha:alpha];
};
[UIView animateWithDuration:0.1
delay:0
options:UIViewAnimationOptionBeginFromCurrentState
animations:animations
completion:nil];
CGFloat alpha = highlighted ? 0.07 : 0;
self.backgroundColor = [UIColor colorWithWhite:0 alpha:alpha];
}
@end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment