diff options
author | Ihab Awad <ihab@google.com> | 2014-07-09 12:32:52 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2014-07-14 18:19:48 +0000 |
commit | 9134e25d7ab8eb687a36ce7ba199e66f44550fdd (patch) | |
tree | 114bc6f4eb505cdfe2721723853855955b8e0c64 /tests/src | |
parent | 2a103c177a04a88e5bb5a40e4fb51608137151a8 (diff) |
Implement multi-SIM capabilities (3/6) [DO NOT MERGE]
Bug:16292368
Change-Id: I367f838a08bd478aca86e2d75b221250ebd8a82e
(cherry picked from commit 0e8a870afc9de3063a652256e81f9bf2043914e0)
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/dialer/tests/calllog/FillCallLogTestActivity.java | 6 |
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()){ |