Avoid spurious animation in call view buttons.

pull/1/head
Matthew Chen 8 years ago
parent 19ebc0f861
commit 40ef287952

@ -714,6 +714,8 @@ class CallViewController: OWSViewController, CallObserver, CallServiceObserver,
ongoingVideoCallControls.removeFromSuperview()
ongoingCallControls.insertArrangedSubview(ongoingAudioCallControls, at: 0)
}
// Layout immediately to avoid spurious animation.
ongoingCallControls.layoutIfNeeded()
// Also hide other controls if user has tapped to hide them.
if shouldRemoteVideoControlsBeHidden && !remoteVideoView.isHidden {

Loading…
Cancel
Save