summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorxinhe <xinhe@google.com>2014-09-25 16:39:28 -0700
committerxinhe <xinhe@google.com>2014-09-25 18:52:58 -0700
commite9f1640b6bb3f10d6c94f05774bcfaa788bea55c (patch)
treef9748a18adef3864b958be3fe59b40ed7bd39dff /telephony
parent4d2b60d136e39d7c483bf1de8ced0bd4a397f872 (diff)
downloadframeworks_base-e9f1640b6bb3f10d6c94f05774bcfaa788bea55c.zip
frameworks_base-e9f1640b6bb3f10d6c94f05774bcfaa788bea55c.tar.gz
frameworks_base-e9f1640b6bb3f10d6c94f05774bcfaa788bea55c.tar.bz2
Support multiple SIM/Subscription on telephony registration
During calling telephony registry call back API, we force the call back will be triggered if the registered subId is Default Sub ID. This is due to some risk condition. Please refer to Issue 17472622 and its fix. This fix is ok for single SIM/Subscription. However, on multiple SIM/subscription, there is potential problem on wrong notifications. Bug:17613629 Change-Id: I3f41e03f37424bcc82a71090d4f4142b4c5ba922
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/PhoneStateListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/PhoneStateListener.java b/telephony/java/android/telephony/PhoneStateListener.java
index b1b63df..bb3e058 100644
--- a/telephony/java/android/telephony/PhoneStateListener.java
+++ b/telephony/java/android/telephony/PhoneStateListener.java
@@ -229,7 +229,7 @@ public class PhoneStateListener {
* own non-null looper use PhoneStateListener(Looper looper) below.
*/
public PhoneStateListener() {
- this(SubscriptionManager.getDefaultSubId(), Looper.myLooper());
+ this(SubscriptionManager.DEFAULT_SUB_ID, Looper.myLooper());
}
/**