mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Animate the selected button indicator if animations are enabled.
This commit is contained in:
parent
890905ced5
commit
c1311f786e
1 changed files with 6 additions and 1 deletions
|
|
@ -245,7 +245,12 @@ static NSString *const kDisappearAnimation = @"disappear";
|
|||
? chatButton.frame.origin.y
|
||||
: -selectedNewFrame.size.height /*hide it if none is selected*/))));
|
||||
}
|
||||
_selectedButtonImage.frame = selectedNewFrame;
|
||||
|
||||
CGFloat delay = [[LinphoneManager instance] lpConfigBoolForKey:@"animations_preference"] ? 0.3 : 0;
|
||||
[UIView animateWithDuration:delay animations:^{
|
||||
_selectedButtonImage.frame = selectedNewFrame;
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
#pragma mark - Action Functions
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue