summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-06-19 18:17:11 -0700
committerYorke Lee <yorkelee@google.com>2015-06-19 18:17:11 -0700
commit2d7bf90875bea954ceacdacd9e52c840200bde37 (patch)
tree092437c96ae1a579e62a75ab5ceaeebd9a900a29 /InCallUI
parent0c75d39e185d917f58a679f6ccca65484560dc30 (diff)
Make sure to remove CallCardPresenter from CallUpdateListeners map
Bug: 21959749 Change-Id: I6662d96b9caaf3c5c94cfc0453cdd226ab850cec
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/CallCardPresenter.java4
1 files changed, 4 insertions, 0 deletions
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<CallCardPresenter.CallCardUi>
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;