summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chen Xu <fionaxu@google.com> 2019-05-08 01:53:23 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-05-08 01:53:23 +0000
commit9bac8d52ce82b6d815604f94aaaa3780902e6472 (patch)
tree31f8cf146db416cc71c9412e47ebde645a18e79e
parent4bf862c07b183dd2b96d51216a093bdf321f45c0 (diff)
parentaddc27001e2a6512cfb3422b687986ecc7104ade (diff)
Merge "listen to correct intent extra for defaultSubIdChange" into qt-dev
-rw-r--r--services/core/java/com/android/server/TelephonyRegistry.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/TelephonyRegistry.java b/services/core/java/com/android/server/TelephonyRegistry.java
index 28bc34859e6c..225c08092b49 100644
--- a/services/core/java/com/android/server/TelephonyRegistry.java
+++ b/services/core/java/com/android/server/TelephonyRegistry.java
@@ -342,7 +342,7 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
Integer newDefaultSubIdObj = new Integer(intent.getIntExtra(
PhoneConstants.SUBSCRIPTION_KEY,
SubscriptionManager.getDefaultSubscriptionId()));
- int newDefaultPhoneId = intent.getIntExtra(PhoneConstants.SLOT_KEY,
+ int newDefaultPhoneId = intent.getIntExtra(PhoneConstants.PHONE_KEY,
SubscriptionManager.getPhoneId(mDefaultSubId));
if (DBG) {
log("onReceive:current mDefaultSubId=" + mDefaultSubId
@@ -1935,8 +1935,8 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
pw.println("mEmergencyNumberList=" + mEmergencyNumberList);
pw.println("mCallQuality=" + mCallQuality);
pw.println("mCallAttributes=" + mCallAttributes);
- pw.println("mDefaultPhoneId" + mDefaultPhoneId);
- pw.println("mDefaultSubId" + mDefaultSubId);
+ pw.println("mDefaultPhoneId=" + mDefaultPhoneId);
+ pw.println("mDefaultSubId=" + mDefaultSubId);
pw.decreaseIndent();