[Settings] Replace #getSubIdForPhoneAccount with #getSubscriptionId

Bug: 146823458
Test: make
Change-Id: I437a6e325112bf9d031a4eb11c28cb755c085bee
This commit is contained in:
zoey chen
2019-12-24 19:21:16 +08:00
parent 1a2b56bd80
commit af4b43535f
2 changed files with 2 additions and 4 deletions

View File

@@ -176,8 +176,7 @@ public class SimDialogActivity extends FragmentActivity {
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;
}
}