summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2014-07-14 23:20:24 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-14 18:38:08 +0000
commit2bc98d35f3a491b7bc46c27863d266c38abe5ef0 (patch)
tree2d112fec8cf7c0094df3b1c0cc01ad9350c28903 /tests
parenta91b9d61eb55751e87af8aab2ba424b9f98fb64f (diff)
parent9134e25d7ab8eb687a36ce7ba199e66f44550fdd (diff)
Merge "Implement multi-SIM capabilities (3/6) [DO NOT MERGE]" into lmp-dev
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java b/tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java
index ea3485338..5580960c7 100644
--- a/tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java
+++ b/tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java
@@ -32,7 +32,7 @@ import android.os.Bundle;
import android.os.RemoteException;
import android.provider.CallLog.Calls;
import android.telecomm.PhoneAccount;
-import android.telephony.TelephonyManager;
+import android.telecomm.TelecommManager;
import android.text.format.DateFormat;
import android.util.Log;
import android.view.View;
@@ -398,8 +398,8 @@ public class FillCallLogTestActivity extends Activity {
}
private PhoneAccount getManualAccount() {
- TelephonyManager telephonyManager = new TelephonyManager(this);
- List <PhoneAccount> accounts = telephonyManager.getAccounts();
+ TelecommManager telecommManager = TelecommManager.from(this);
+ List <PhoneAccount> accounts = telecommManager.getEnabledPhoneAccounts();
if (mAccount0.isChecked()) {
return accounts.get(0);
} else if (mAccount1.isChecked()){