diff options
| author | 2024-01-25 14:32:20 -0800 | |
|---|---|---|
| committer | 2024-01-26 13:27:12 -0800 | |
| commit | 541d940f9c1a1870653f2e856de95f8e5aa35f0c (patch) | |
| tree | 17e507167bbc679aba1c908499a102a68d5bf18d | |
| parent | 2ce52b3f2dd205a6dd8cc4ec24e443d71d745519 (diff) | |
Resolve hidden TelecomManager referencing
As part of mainline prep, resolve hidden references of
TelecomManager.from in the codebase. Instead, retrieve the
service with Context.TELECOM_SERVICE via
Context#getSystemService.
Bug: 307817880
Bug: 311773409
Test: m
Change-Id: Ib37831bf6579c82d43db783d97b8854b118d9815
| -rw-r--r-- | core/java/android/provider/CallLog.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/provider/CallLog.java b/core/java/android/provider/CallLog.java index 5d6dfc760b02..7d127ad660c5 100644 --- a/core/java/android/provider/CallLog.java +++ b/core/java/android/provider/CallLog.java @@ -2102,7 +2102,7 @@ public class CallLog { PhoneAccountHandle accountHandle) { TelecomManager tm = null; try { - tm = TelecomManager.from(context); + tm = context.getSystemService(TelecomManager.class); } catch (UnsupportedOperationException e) { if (VERBOSE_LOG) { Log.v(LOG_TAG, "No TelecomManager found to get account address."); |