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

This commit is contained in:
Jayachandran Chinnakkannu
2019-11-18 06:16:42 +00:00
committed by Android (Google) Code Review

View File

@@ -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) {