diff options
-rw-r--r-- | src/com/android/incallui/AnswerPresenter.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/incallui/AnswerPresenter.java b/src/com/android/incallui/AnswerPresenter.java index 814dcf74..b0619b18 100644 --- a/src/com/android/incallui/AnswerPresenter.java +++ b/src/com/android/incallui/AnswerPresenter.java @@ -275,7 +275,9 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi> public void onDisconnect(Call call) { int subId = call.getSubId(); int phoneId = mCalls.getPhoneId(subId); - mCall[phoneId] = null; + if (call.equals(mCall[phoneId])) { + mCall[phoneId] = null; + } } public void onSessionModificationStateChange(int sessionModificationState) { @@ -330,7 +332,7 @@ public class AnswerPresenter extends Presenter<AnswerPresenter.AnswerUi> int phoneId = mCalls.getPhoneId(subId); mCallId[phoneId] = call.getId(); mCall[phoneId] = call; - + mCalls.addListener(this); // Listen for call updates for the current call. mCalls.addCallUpdateListener(mCallId[phoneId], this); |