diff options
author | Yorke Lee <yorkelee@google.com> | 2014-07-28 15:52:55 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-07-29 09:23:01 -0700 |
commit | a96c244d7a4ee2e23302846d337324c3a6d91c46 (patch) | |
tree | c50422d26e716d0154f2bc48109c79628df68575 /src | |
parent | 9582d0e4bb58fdcb04260bb75f0d474b0c1b62a6 (diff) |
Remove use of TelecommManager.from(context)
Bug: 6948882
Change-Id: Ic1fbc624512c8d6d2df1cfe64b98cd1e74efa51c
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/calllog/PhoneAccountUtils.java | 3 |
1 files changed, 2 insertions, 1 deletions
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; |