Merge "Remove usage of Telephonymanager getDefault() and from() hidden APIs"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b61af00a0e
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user