summaryrefslogtreecommitdiffstats
path: root/src/com/android/incallui/CallList.java
diff options
context:
space:
mode:
authorPrerepa Viswanadham <dham@google.com>2015-04-10 14:24:43 -0700
committerPrerepa Viswanadham <dham@google.com>2015-04-10 14:24:43 -0700
commit5468d9beac7c4e9efe3dfe25a74c87ff94a0f9ef (patch)
tree2ed98f690361959d6f9b6f13edd84e3ac4643755 /src/com/android/incallui/CallList.java
parent6926c361c96d0dc6ea2ee637bed0edd552192c08 (diff)
parent8bef461247ec597f4fbbc604ee6e37fbdbc27d1e (diff)
downloadpackages_apps_InCallUI-5468d9beac7c4e9efe3dfe25a74c87ff94a0f9ef.tar.gz
packages_apps_InCallUI-5468d9beac7c4e9efe3dfe25a74c87ff94a0f9ef.tar.bz2
packages_apps_InCallUI-5468d9beac7c4e9efe3dfe25a74c87ff94a0f9ef.zip
Merge commit '8bef461' into merge_work
Change-Id: I4cfea114e24c0b0671e99118316ad839dafbe400
Diffstat (limited to 'src/com/android/incallui/CallList.java')
-rw-r--r--src/com/android/incallui/CallList.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/com/android/incallui/CallList.java b/src/com/android/incallui/CallList.java
index 1ede89d8..9868aef5 100644
--- a/src/com/android/incallui/CallList.java
+++ b/src/com/android/incallui/CallList.java
@@ -75,7 +75,9 @@ public class CallList implements InCallPhoneListener {
public void onCallAdded(Phone phone, android.telecom.Call telecommCall) {
Trace.beginSection("onCallAdded");
Call call = new Call(telecommCall);
- if (call.getState() == Call.State.INCOMING) {
+ Log.d(this, "onCallAdded: callState=" + call.getState());
+ if (call.getState() == Call.State.INCOMING ||
+ call.getState() == Call.State.CALL_WAITING) {
onIncoming(call, call.getCannedSmsResponses());
} else {
onUpdate(call);
@@ -141,6 +143,12 @@ public class CallList implements InCallPhoneListener {
}
}
+ public void onUpgradeToVideo(Call call){
+ Log.d(this, "onUpgradeToVideo call=" + call);
+ for (Listener listener : mListeners) {
+ listener.onUpgradeToVideo(call);
+ }
+ }
/**
* Called when a single call has changed.
*/
@@ -547,7 +555,11 @@ public class CallList implements InCallPhoneListener {
* incoming calls.
*/
public void onIncomingCall(Call call);
-
+ /**
+ * Called when a new modify call request comes in
+ * This is the only method that gets called for modify requests.
+ */
+ public void onUpgradeToVideo(Call call);
/**
* Called anytime there are changes to the call list. The change can be switching call
* states, updating information, etc. This method will NOT be called for new incoming