commit | ac92bab305f895d02e0d912ed99ec92742372319 | [log] [tgz] |
---|---|---|
author | zoey chen <zoeychen@google.com> | Tue Dec 24 19:21:16 2019 +0800 |
committer | zoey chen <zoeychen@google.com> | Wed Dec 25 16:27:00 2019 +0800 |
tree | e312bbf214f1c9fdb0706170c841362d094a4fc4 | |
parent | e29ca94af4ae50a97a0a3d523eb1cd3db0bb9264 [diff] |
[Settings] Replace #getSubIdForPhoneAccount with #getSubscriptionId Bug: 146823458 Test: make Change-Id: I437a6e325112bf9d031a4eb11c28cb755c085bee Merged-In: I437a6e325112bf9d031a4eb11c28cb755c085bee
diff --git a/src/com/android/settings/sim/CallsSimListDialogFragment.java b/src/com/android/settings/sim/CallsSimListDialogFragment.java index 7d3de44..6dd262b 100644 --- a/src/com/android/settings/sim/CallsSimListDialogFragment.java +++ b/src/com/android/settings/sim/CallsSimListDialogFragment.java
@@ -47,8 +47,7 @@ return result; } for (PhoneAccountHandle handle : phoneAccounts) { - final PhoneAccount phoneAccount = telecomManager.getPhoneAccount(handle); - final int subId = telephonyManager.getSubIdForPhoneAccount(phoneAccount); + final int subId = telephonyManager.getSubscriptionId(handle); if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { continue;
diff --git a/src/com/android/settings/sim/SimDialogActivity.java b/src/com/android/settings/sim/SimDialogActivity.java index d24dbf5..0ae294e 100644 --- a/src/com/android/settings/sim/SimDialogActivity.java +++ b/src/com/android/settings/sim/SimDialogActivity.java
@@ -176,8 +176,7 @@ final TelephonyManager telephonyManager = getSystemService(TelephonyManager.class); for (PhoneAccountHandle handle : telecomManager.getCallCapablePhoneAccounts()) { - final PhoneAccount phoneAccount = telecomManager.getPhoneAccount(handle); - if (subId == telephonyManager.getSubIdForPhoneAccount(phoneAccount)) { + if (subId == telephonyManager.getSubscriptionId(handle)) { return handle; } }