From 9134e25d7ab8eb687a36ce7ba199e66f44550fdd Mon Sep 17 00:00:00 2001 From: Ihab Awad Date: Wed, 9 Jul 2014 12:32:52 -0700 Subject: Implement multi-SIM capabilities (3/6) [DO NOT MERGE] Bug:16292368 Change-Id: I367f838a08bd478aca86e2d75b221250ebd8a82e (cherry picked from commit 0e8a870afc9de3063a652256e81f9bf2043914e0) --- .../com/android/dialer/tests/calllog/FillCallLogTestActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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 accounts = telephonyManager.getAccounts(); + TelecommManager telecommManager = TelecommManager.from(this); + List accounts = telecommManager.getEnabledPhoneAccounts(); if (mAccount0.isChecked()) { return accounts.get(0); } else if (mAccount1.isChecked()){ -- cgit v1.2.3