summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Pranav Madapurmath <pmadapurmath@google.com> 2024-01-30 21:41:02 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-01-30 21:41:02 +0000
commit9db370befa13f5c3fa7af995ad98bc3e3910463c (patch)
treea52a26f001606a246c1fe4c0094e521af56d0f97
parent3e45c4be69ef3e2034cf0c920af65888cc1bfdd6 (diff)
parent541d940f9c1a1870653f2e856de95f8e5aa35f0c (diff)
Merge "Resolve hidden TelecomManager referencing" into main
-rw-r--r--core/java/android/provider/CallLog.java2
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.");