summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormengsun <msun@codeaurora.org>2014-03-11 16:51:21 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-04-09 05:56:37 -0700
commit5127011efc1676d7421bb07705dd762fc8aa0169 (patch)
tree8cd502ca04bf377b833af55dc90b45147ecdfb98 /src
parentff29e96047e27d54e1f1bc32bdc6b492d1dbb0c4 (diff)
downloadpackages_apps_InCallUI-5127011efc1676d7421bb07705dd762fc8aa0169.tar.gz
packages_apps_InCallUI-5127011efc1676d7421bb07705dd762fc8aa0169.tar.bz2
packages_apps_InCallUI-5127011efc1676d7421bb07705dd762fc8aa0169.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/com/android/incallui/CallList.java4
1 files changed, 4 insertions, 0 deletions
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<String> 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);