diff options
author | Nancy Chen <nancychen@google.com> | 2014-09-15 18:16:07 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2014-09-16 10:51:30 -0700 |
commit | fb49f977e59c142aee019fa5aa040e7308e534e0 (patch) | |
tree | 704220c36bf4d71af8d2dec4016fd580a11ebb2c | |
parent | 9dc924c8bcc0bc8d996452e9ce3215b5f064962e (diff) |
Remove ability to enable/disable phoneaccounts (4/6)
Enabling/disabling of phone accounts was only used for SIP accounts and
is no longer necessary for the purpose it was put in.
Bug: 17510811
Change-Id: I41a2d11cfa85343fdf3f8681f1152d94abd79d2f
-rw-r--r-- | src/com/android/dialer/calllog/PhoneAccountUtils.java | 2 | ||||
-rw-r--r-- | tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/dialer/calllog/PhoneAccountUtils.java b/src/com/android/dialer/calllog/PhoneAccountUtils.java index 941ac4bc5..d716aee49 100644 --- a/src/com/android/dialer/calllog/PhoneAccountUtils.java +++ b/src/com/android/dialer/calllog/PhoneAccountUtils.java @@ -71,7 +71,7 @@ public class PhoneAccountUtils { final TelecomManager telecomManager = (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE); final PhoneAccount account = telecomManager.getPhoneAccount(phoneAccount); - if (account == null || !telecomManager.hasMultipleEnabledAccounts()) { + if (account == null || !telecomManager.hasMultipleCallCapableAccounts()) { return null; } return account; diff --git a/tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java b/tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java index 81585cc62..2e90c4d33 100644 --- a/tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java +++ b/tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java @@ -399,7 +399,7 @@ public class FillCallLogTestActivity extends Activity { private PhoneAccountHandle getManualAccount() { TelecomManager telecomManager = TelecomManager.from(this); - List <PhoneAccountHandle> accountHandles = telecomManager.getEnabledPhoneAccounts(); + List <PhoneAccountHandle> accountHandles = telecomManager.getCallCapablePhoneAccounts(); if (mAccount0.isChecked()) { return accountHandles.get(0); } else if (mAccount1.isChecked()){ |