From 2d7bf90875bea954ceacdacd9e52c840200bde37 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 19 Jun 2015 18:17:11 -0700 Subject: Make sure to remove CallCardPresenter from CallUpdateListeners map Bug: 21959749 Change-Id: I6662d96b9caaf3c5c94cfc0453cdd226ab850cec --- InCallUI/src/com/android/incallui/CallCardPresenter.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'InCallUI') diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index 5cbffa628..39911e01a 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -226,6 +226,10 @@ public class CallCardPresenter extends Presenter mPrimary.setSessionModificationState(Call.SessionModificationState.NO_REQUEST); } + if (previousPrimary != null && mPrimary == null) { + CallList.getInstance().removeCallUpdateListener(previousPrimary.getId(), this); + } + if (mSecondary == null) { // Secondary call may have ended. Update the ui. mSecondaryContactInfo = null; -- cgit v1.2.3