summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-09-17 03:54:22 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-17 03:54:22 +0000
commitc648e3680d0b5cd0742597fef42c1b8d647ea1d5 (patch)
tree870c8f507aee2b92f4482026aa737dfd34de2a72
parent522ec48316a9efc36172fd68123b0807cd482ad1 (diff)
parentf187c51b03f5dc59e207d228e712890fffdc7d8c (diff)
am f187c51b: am 6b080357: Merge "Remove ability to enable/disable phoneaccounts (4/6)" into lmp-dev
* commit 'f187c51b03f5dc59e207d228e712890fffdc7d8c': Remove ability to enable/disable phoneaccounts (4/6)
-rw-r--r--src/com/android/dialer/calllog/PhoneAccountUtils.java2
-rw-r--r--tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java2
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()){