From f2301bcbbfa68c851f02bb23fa148d5e95ac3c70 Mon Sep 17 00:00:00 2001 From: Hall Liu Date: Fri, 29 Jan 2016 18:41:14 -0800 Subject: [PATCH] Remove check for missing parent calls 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 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/telecomm/java/android/telecom/Phone.java b/telecomm/java/android/telecom/Phone.java index 56eb7ec5fb781..d45938cb9b851 100644 --- a/telecomm/java/android/telecom/Phone.java +++ b/telecomm/java/android/telecom/Phone.java @@ -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))) {