mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Don't animate the UICall cell when no animation is wanted
This commit is contained in:
parent
966f8dc9a2
commit
12fc7dcf6b
1 changed files with 6 additions and 0 deletions
|
|
@ -343,6 +343,7 @@
|
|||
#pragma mark - Animation Functions
|
||||
|
||||
- (void)startBlinkAnimation:(NSString *)animationID target:(UIView *)target {
|
||||
if( [[LinphoneManager instance] lpConfigBoolForKey:@"animations_preference"]){
|
||||
CABasicAnimation *blink = [CABasicAnimation animationWithKeyPath:@"opacity"];
|
||||
blink.duration = 1.0;
|
||||
blink.fromValue = [NSNumber numberWithDouble:0.0f];
|
||||
|
|
@ -351,6 +352,9 @@
|
|||
blink.autoreverses = TRUE;
|
||||
blink.repeatCount = HUGE_VALF;
|
||||
[target.layer addAnimation:blink forKey:animationID];
|
||||
} else {
|
||||
[target setAlpha:1.0f];
|
||||
}
|
||||
}
|
||||
|
||||
- (BOOL)isBlinkAnimationRunning:(NSString *)animationID target:(UIView *)target {
|
||||
|
|
@ -358,7 +362,9 @@
|
|||
}
|
||||
|
||||
- (void)stopBlinkAnimation:(NSString *)animationID target:(UIView *)target {
|
||||
if( [self isBlinkAnimationRunning:animationID target:target] ){
|
||||
[target.layer removeAnimationForKey:animationID];
|
||||
}
|
||||
[target setAlpha:0.0f];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue