From 5127011efc1676d7421bb07705dd762fc8aa0169 Mon Sep 17 00:00:00 2001 From: mengsun Date: Tue, 11 Mar 2014 16:51:21 +0800 Subject: Fix "Not able to answer call in the other sub when one sub has call active" The active sub is changed to a incorrect sub on phone state changed event which is earlier than incoming call event, so set the incoming call sub as active sub again when incoming call event got. CRs-Fixed: 625303 Change-Id: Ibcbfc59f7d7f059d8fc04e0fd4f0c385152f9307 --- src/com/android/incallui/CallList.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/incallui/CallList.java b/src/com/android/incallui/CallList.java index 9b942ed1..6a3c8521 100644 --- a/src/com/android/incallui/CallList.java +++ b/src/com/android/incallui/CallList.java @@ -109,6 +109,10 @@ public class CallList { public void onIncoming(Call call, List textMessages) { Log.d(this, "onIncoming - " + call); + // ensure the ringing call is active subscription, since phone state + // changed is notified before new incoming call ringing, and the event + // will switch active sub to a wrong sub(which is not ringing) + CallCommandClient.getInstance().setActiveSubscription(call.getSubscription()); updateActiveSuscription(); updateCallInMap(call); -- cgit v1.2.3