From 40ef2879522b501d3f79e27daa1d9a888368c9bd Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 30 May 2018 13:03:58 -0400 Subject: [PATCH] Avoid spurious animation in call view buttons. --- Signal/src/ViewControllers/CallViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Signal/src/ViewControllers/CallViewController.swift b/Signal/src/ViewControllers/CallViewController.swift index d2a0d324a..8c4f449f7 100644 --- a/Signal/src/ViewControllers/CallViewController.swift +++ b/Signal/src/ViewControllers/CallViewController.swift @@ -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 {