diff options
author | Andrew Lee <anwlee@google.com> | 2014-07-11 17:48:42 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-07-14 17:16:52 -0700 |
commit | 3b6cae66919be4b6066d996cd219c2ecd7c72111 (patch) | |
tree | 41efc07c60bdef81b8d0b73060807537cde0c3bd /InCallUI | |
parent | 121213bc2768e7666454b0940f23a77621936b5f (diff) |
Set video state on the InCallUI's Call from the InCallCall.
Bug: 16015750
Change-Id: I526a6084cff20750b9120e55458ac55a65df947e
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/Call.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/Call.java b/InCallUI/src/com/android/incallui/Call.java index 5dbd038fe..475497988 100644 --- a/InCallUI/src/com/android/incallui/Call.java +++ b/InCallUI/src/com/android/incallui/Call.java @@ -147,6 +147,11 @@ public final class Call { } @Override + public void onVideoStateChanged(android.telecomm.Call call, int videoState) { + update(); + } + + @Override public void onCallDestroyed(android.telecomm.Call call) { call.removeListener(mTelecommCallListener); } @@ -158,6 +163,8 @@ public final class Call { private int mDisconnectCause; private String mParentCallId; private final List<String> mChildCallIds = new ArrayList<>(); + private int mVideoState; + private InCallVideoClient mCallVideoClient; public Call(android.telecomm.Call telecommCall) { @@ -208,6 +215,8 @@ public final class Call { CallList.getInstance().getCallByTelecommCall( mTelecommCall.getChildren().get(i)).getId()); } + + mVideoState = mTelecommCall.getVideoState(); } private static int translateState(int state) { @@ -320,6 +329,10 @@ public final class Call { return mParentCallId; } + public int getVideoState() { + return mVideoState; + } + @Override public String toString() { return String.format(Locale.US, "[%s, %s, %s, children:%s, parent:%s]", |