From acf06a5d427e4a7540576bed34c31312b59c6113 Mon Sep 17 00:00:00 2001 From: Brandon Maxwell Date: Mon, 21 Dec 2015 17:58:58 -0800 Subject: Backporting usage of VideoProfile Many of the VideoProfile methods in M came VideoProfile$VideoState previously. Due to the single line nature of most of the methods, the implementations are copied into the compat class to use in the event that the sdk is earlier than M. Bug=25776171 Change-Id: Ia597228a050e50f0efd4f79a458535ddb2925c83 --- .../com/android/incallui/VideoCallPresenter.java | 25 +++++++++++----------- InCallUI/src/com/android/incallui/VideoUtils.java | 11 +++++----- .../compat/telecom/VideoProfileCompat.java | 13 +++++++++++ 3 files changed, 32 insertions(+), 17 deletions(-) (limited to 'InCallUI') diff --git a/InCallUI/src/com/android/incallui/VideoCallPresenter.java b/InCallUI/src/com/android/incallui/VideoCallPresenter.java index 9f1f8f89c..ebdf82048 100644 --- a/InCallUI/src/com/android/incallui/VideoCallPresenter.java +++ b/InCallUI/src/com/android/incallui/VideoCallPresenter.java @@ -39,6 +39,7 @@ import com.android.incallui.InCallPresenter.InCallStateListener; import com.android.incallui.InCallPresenter.IncomingCallListener; import com.android.incallui.InCallVideoCallCallbackNotifier.SurfaceChangeListener; import com.android.incallui.InCallVideoCallCallbackNotifier.VideoEventListener; +import com.android.incallui.compat.telecom.VideoProfileCompat; import java.util.Objects; @@ -487,8 +488,8 @@ public class VideoCallPresenter extends Presenter