OSDN Git Service

Remove check for missing parent calls
authorHall Liu <hallliu@google.com>
Sat, 30 Jan 2016 02:41:14 +0000 (18:41 -0800)
committerHall Liu <hallliu@google.com>
Sat, 30 Jan 2016 02:41:14 +0000 (18:41 -0800)
Telecom now guarantees that when sending a conference call to an in-call
service, all children will be sent before any parents. Thus, it is
acceptable for children to temporarily have invalid references to
parent calls, but not vice versa.

Bug: 26818778
Change-Id: Id34e4c3a773e6f7c75be8c85ec2642cf05dabe0a

telecomm/java/android/telecom/Phone.java

index 56eb7ec..d45938c 100644 (file)
@@ -348,11 +348,6 @@ public final class Phone {
     }
 
     private void checkCallTree(ParcelableCall parcelableCall) {
-        if (parcelableCall.getParentCallId() != null &&
-                !mCallByTelecomCallId.containsKey(parcelableCall.getParentCallId())) {
-            Log.wtf(this, "ParcelableCall %s has nonexistent parent %s",
-                    parcelableCall.getId(), parcelableCall.getParentCallId());
-        }
         if (parcelableCall.getChildCallIds() != null) {
             for (int i = 0; i < parcelableCall.getChildCallIds().size(); i++) {
                 if (!mCallByTelecomCallId.containsKey(parcelableCall.getChildCallIds().get(i))) {