summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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()){