Remove ability to enable/disable phoneaccounts (3/6)
Enabling/disabling of phone accounts was only used for SIP accounts and
is no longer necessary for the purpose it was put in.
- Remove all references to enabling/disabling phone accounts
+ Rename getEnabledPhoneAccounts to getCallCapablePhoneAccounts
Bug: 17510811
Change-Id: I5e8a59fe2aaac2563fe4bf97138975e30b45aa3c
diff --git a/src/com/android/server/telecom/CallsManager.java b/src/com/android/server/telecom/CallsManager.java
index 2636c2f..583c4d6 100644
--- a/src/com/android/server/telecom/CallsManager.java
+++ b/src/com/android/server/telecom/CallsManager.java
@@ -319,9 +319,9 @@
// as if a phoneAccount was not specified (does the default behavior instead).
// Note: We will not attempt to dial with a requested phoneAccount if it is disabled.
if (phoneAccountHandle != null) {
- List<PhoneAccountHandle> enabledAccounts =
- app.getPhoneAccountRegistrar().getEnabledPhoneAccounts(handle.getScheme());
- if (!enabledAccounts.contains(phoneAccountHandle)) {
+ List<PhoneAccountHandle> accounts =
+ app.getPhoneAccountRegistrar().getCallCapablePhoneAccounts(handle.getScheme());
+ if (!accounts.contains(phoneAccountHandle)) {
phoneAccountHandle = null;
}
}