From 83b8696f0300f65ef6383982ab22592b47ef821f Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 23 Mar 2015 15:44:27 -0700 Subject: Fix for misaligned video view surface * Stash the true height of mPrimaryCallCardContainer in a view tag so that its height is not misreported during the outgoing call animation * Move the onGlobalLayoutListener so that the callbacks occur after the surfaces have been inflated, to ensure the views are non-null. Bug: 19773495 Change-Id: Ib762285c595ec826c6da15296db66d830d9fe24e --- InCallUI/res/values/ids.xml | 1 + .../src/com/android/incallui/CallCardFragment.java | 17 ++++++++- .../com/android/incallui/VideoCallFragment.java | 44 +++++++++++----------- 3 files changed, 37 insertions(+), 25 deletions(-) diff --git a/InCallUI/res/values/ids.xml b/InCallUI/res/values/ids.xml index c6ad2099c..accb8fb73 100644 --- a/InCallUI/res/values/ids.xml +++ b/InCallUI/res/values/ids.xml @@ -16,4 +16,5 @@ + diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index e63e7a6a4..7dd36ff41 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -57,7 +57,6 @@ import java.util.List; */ public class CallCardFragment extends BaseFragment implements CallCardPresenter.CallCardUi { - private AnimatorSet mAnimatorSet; private int mShrinkAnimationDuration; private int mFabNormalDiameter; @@ -360,7 +359,17 @@ public class CallCardFragment extends BaseFragment