From 770bd50b45272b62b27ecca40a9c3538cc9bb1bc 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: I3348e33b90b5dd6945f4b2ba6e91d63cd3b2fed9 --- 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 ea6479223..5a7963712 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; @@ -72,6 +74,22 @@ public class VideoCallPresenter extends Presenter