diff options
author | Yorke Lee <yorkelee@google.com> | 2015-06-19 18:17:11 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-06-19 18:17:11 -0700 |
commit | 2d7bf90875bea954ceacdacd9e52c840200bde37 (patch) | |
tree | 092437c96ae1a579e62a75ab5ceaeebd9a900a29 /InCallUI | |
parent | 0c75d39e185d917f58a679f6ccca65484560dc30 (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.java | 4 |
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; |