mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
UIBouncingView: fix crash when monkey typing between views
This commit is contained in:
parent
3b26ee677d
commit
cf07453fc8
1 changed files with 7 additions and 2 deletions
|
|
@ -99,6 +99,7 @@ INIT_WITH_COMMON {
|
|||
if (!self.hidden) {
|
||||
return;
|
||||
}
|
||||
|
||||
[self setHidden:FALSE];
|
||||
if ([[LinphoneManager instance] lpConfigBoolForKey:@"animations_preference"] == true) {
|
||||
if (animated) {
|
||||
|
|
@ -106,7 +107,9 @@ INIT_WITH_COMMON {
|
|||
target:self
|
||||
completion:^(BOOL finished) {
|
||||
[self startBounceAnimation:kBounceAnimation target:self];
|
||||
[self.layer removeAnimationForKey:kAppearAnimation];
|
||||
if (finished) {
|
||||
[self.layer removeAnimationForKey:kAppearAnimation];
|
||||
}
|
||||
}];
|
||||
} else {
|
||||
[self startBounceAnimation:kBounceAnimation target:self];
|
||||
|
|
@ -125,7 +128,9 @@ INIT_WITH_COMMON {
|
|||
target:self
|
||||
completion:^(BOOL finished) {
|
||||
[self setHidden:TRUE];
|
||||
[self.layer removeAnimationForKey:kDisappearAnimation];
|
||||
if (finished) {
|
||||
[self.layer removeAnimationForKey:kDisappearAnimation];
|
||||
}
|
||||
}];
|
||||
} else {
|
||||
[self setHidden:TRUE];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue