From 37aaca775a1275fcc0364452ef106156f711e2ab Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Thu, 7 May 2015 13:48:10 -0700 Subject: Fix issues with fullscreen video call mode and incoming calls. In onStateChange, when there is an incoming call, the primary call is kept as the active call. This is problematic for the logic in the maybeAutoEnterFullscreen method which relied on the primary call to determine if the UX should automatically switch to fullscreen mode. Added code to ensure we auto-exit fullscreen mode based on the current call context. Bug: 20915113 Change-Id: If11c358c83c92a308d6f78f229354f7feb5bfea4 --- .../com/android/incallui/VideoCallPresenter.java | 68 +++++++++++++++++----- 1 file changed, 55 insertions(+), 13 deletions(-) (limited to 'InCallUI') diff --git a/InCallUI/src/com/android/incallui/VideoCallPresenter.java b/InCallUI/src/com/android/incallui/VideoCallPresenter.java index e4ba68b03..dc5e81fb1 100644 --- a/InCallUI/src/com/android/incallui/VideoCallPresenter.java +++ b/InCallUI/src/com/android/incallui/VideoCallPresenter.java @@ -369,7 +369,7 @@ public class VideoCallPresenter extends Presenter