From 8e8824b65575c130c531ed889f07488eff05cf1d Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Mon, 4 May 2015 08:45:38 -0700 Subject: Auto fullscreen mode when starting a video call. - Added code to VideoCallPresenter to automatically enter fullscreen mode once a video call starts. Bug: 19850117 Change-Id: I801433243df556c3398ad82a60fc738bdfb35f79 --- InCallUI/res/values/config.xml | 7 ++ .../com/android/incallui/VideoCallPresenter.java | 93 +++++++++++++++++++++- 2 files changed, 99 insertions(+), 1 deletion(-) diff --git a/InCallUI/res/values/config.xml b/InCallUI/res/values/config.xml index 8acbd5910..b81ba3ca0 100644 --- a/InCallUI/res/values/config.xml +++ b/InCallUI/res/values/config.xml @@ -17,4 +17,11 @@ 5 + + + true + + 5000 \ No newline at end of file diff --git a/InCallUI/src/com/android/incallui/VideoCallPresenter.java b/InCallUI/src/com/android/incallui/VideoCallPresenter.java index 87843f907..6309acbe7 100644 --- a/InCallUI/src/com/android/incallui/VideoCallPresenter.java +++ b/InCallUI/src/com/android/incallui/VideoCallPresenter.java @@ -22,6 +22,8 @@ import android.database.Cursor; import android.graphics.Point; import android.net.Uri; import android.os.AsyncTask; +import android.os.Handler; +import android.os.Looper; import android.provider.ContactsContract; import android.telecom.AudioState; import android.telecom.CameraCapabilities; @@ -74,6 +76,22 @@ public class VideoCallPresenter extends Presenter