From 3490c8125aaf1aaf5e4d9cc3713386db6723d613 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Tue, 26 May 2015 15:00:30 -0700 Subject: Correct positioning of incoming video view. There were a few things going on: 1. There is a case where we could try to position the incoming video view before the call card has been fully laid out and its height is known. 2. When querying the height of the video surface, the getHeight() method does not always return the value that was just set on it. Using the layout params solves this problem. 3. Cleaned up some other comments and debug statements. Bug: 21444300 Change-Id: I9b59b132d6d4c7559497c6499b164598e7a75c7f --- InCallUI/src/com/android/incallui/CallCardFragment.java | 11 ++++------- InCallUI/src/com/android/incallui/VideoCallFragment.java | 13 ++++++++++--- InCallUI/src/com/android/incallui/VideoCallPresenter.java | 4 ++-- 3 files changed, 16 insertions(+), 12 deletions(-) (limited to 'InCallUI') diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index 46f8a7ead..e06d8d0eb 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -410,9 +410,8 @@ public class CallCardFragment extends BaseFragment