When video call state is set, propagate state to InCallCall.
We ultimately need this information in the InCallUI...
Bug: 16015750
Change-Id: I5fc146e2a0812d2b9c48cf6297d9ce4193a10382
diff --git a/src/com/android/telecomm/Call.java b/src/com/android/telecomm/Call.java
index 5f28df8..cd79b66 100644
--- a/src/com/android/telecomm/Call.java
+++ b/src/com/android/telecomm/Call.java
@@ -81,6 +81,7 @@
void onStatusHintsChanged(Call call);
void onHandleChanged(Call call);
void onCallerDisplayNameChanged(Call call);
+ void onVideoStateChanged(Call call);
}
abstract static class ListenerBase implements Listener {
@@ -122,6 +123,8 @@
public void onHandleChanged(Call call) {}
@Override
public void onCallerDisplayNameChanged(Call call) {}
+ @Override
+ public void onVideoStateChanged(Call call) {}
}
private static final OnQueryCompleteListener sCallerInfoQueryListener =
@@ -1067,6 +1070,9 @@
*/
public void setVideoState(int videoState) {
mVideoState = videoState;
+ for (Listener l : mListeners) {
+ l.onVideoStateChanged(this);
+ }
}
public boolean getAudioModeIsVoip() {