Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30167034 authored by Jayachandran C's avatar Jayachandran C
Browse files

Remove usage of Telephonymanager getDefault() and from() hidden APIs

This CL changes to use getSystemService(TelephonyManager.class)

Bug: 140768340
Test: Build
Change-Id: Iad6e9c750932521af5fda57e652c1134aa5b0dea
parent 0fd29b3a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1179,7 +1179,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
        long token = Binder.clearCallingIdentity();
        synchronized (this) {
            if (mTelephony == null) {
                mTelephony = TelephonyManager.from(mContext);
                mTelephony = mContext.getSystemService(TelephonyManager.class);
            }
        }
        if (mTelephony != null) {