diff options
Diffstat (limited to 'telecomm/java/android/telecom/Phone.java')
-rw-r--r-- | telecomm/java/android/telecom/Phone.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Phone.java b/telecomm/java/android/telecom/Phone.java index d9a9cdf..d456dfa 100644 --- a/telecomm/java/android/telecom/Phone.java +++ b/telecomm/java/android/telecom/Phone.java @@ -119,6 +119,11 @@ public final class Phone { final void internalRemoveCall(Call call) { mCallByTelecomCallId.remove(call.internalGetCallId()); mCalls.remove(call); + + InCallService.VideoCall videoCall = call.getVideoCall(); + if (videoCall != null) { + videoCall.removeVideoCallListener(); + } fireCallRemoved(call); } @@ -171,6 +176,10 @@ public final class Phone { */ final void destroy() { for (Call call : mCalls) { + InCallService.VideoCall videoCall = call.getVideoCall(); + if (videoCall != null) { + videoCall.removeVideoCallListener(); + } if (call.getState() != Call.STATE_DISCONNECTED) { call.internalSetDisconnected(); } |