From a96c244d7a4ee2e23302846d337324c3a6d91c46 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 28 Jul 2014 15:52:55 -0700 Subject: Remove use of TelecommManager.from(context) Bug: 6948882 Change-Id: Ic1fbc624512c8d6d2df1cfe64b98cd1e74efa51c --- src/com/android/dialer/calllog/PhoneAccountUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/android/dialer/calllog/PhoneAccountUtils.java') diff --git a/src/com/android/dialer/calllog/PhoneAccountUtils.java b/src/com/android/dialer/calllog/PhoneAccountUtils.java index dc838fb1a..f90ad0dc0 100644 --- a/src/com/android/dialer/calllog/PhoneAccountUtils.java +++ b/src/com/android/dialer/calllog/PhoneAccountUtils.java @@ -68,7 +68,8 @@ public class PhoneAccountUtils { */ private static PhoneAccount getAccountOrNull(Context context, PhoneAccountHandle phoneAccount) { - final TelecommManager telecommManager = TelecommManager.from(context); + final TelecommManager telecommManager = + (TelecommManager) context.getSystemService(Context.TELECOMM_SERVICE); final PhoneAccount account = telecommManager.getPhoneAccount(phoneAccount); if (account == null || !telecommManager.hasMultipleEnabledAccounts()) { return null; -- cgit v1.2.3