From 055e5a227bf9924fb8278e14ffc08a4054ba8f95 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 21 Jul 2014 12:14:11 -0700 Subject: Add video call profile constructor which takes video state only. Bug: 16014280 Change-Id: I218256ae1e20783084412758cf5a44f7f5dec52e --- api/current.txt | 1 + telecomm/java/android/telecomm/VideoCallProfile.java | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/api/current.txt b/api/current.txt index 9f502d77d37e..8fc9f02596a6 100644 --- a/api/current.txt +++ b/api/current.txt @@ -28711,6 +28711,7 @@ package android.telecomm { } public class VideoCallProfile implements android.os.Parcelable { + ctor public VideoCallProfile(int); ctor public VideoCallProfile(int, int); method public int describeContents(); method public int getQuality(); diff --git a/telecomm/java/android/telecomm/VideoCallProfile.java b/telecomm/java/android/telecomm/VideoCallProfile.java index fc7b2c34c350..5b15e4aa1574 100644 --- a/telecomm/java/android/telecomm/VideoCallProfile.java +++ b/telecomm/java/android/telecomm/VideoCallProfile.java @@ -73,6 +73,15 @@ public class VideoCallProfile implements Parcelable { private final int mQuality; + /** + * Creates an instance of the VideoCallProfile + * + * @param videoState The video state. + */ + public VideoCallProfile(int videoState) { + this(videoState, QUALITY_DEFAULT); + } + /** * Creates an instance of the VideoCallProfile * -- cgit v1.2.3-59-g8ed1b