Merge "[Settings] Replace TelephonyManager#from()"

This commit is contained in:
Bonian Chen
2019-12-26 03:36:09 +00:00
committed by Gerrit Code Review
2 changed files with 15 additions and 17 deletions

View File

@@ -50,7 +50,8 @@ public class EuiccPreferenceController extends TelephonyBasePreferenceController
public void init(int subId) {
mSubId = subId;
mTelephonyManager = TelephonyManager.from(mContext).createForSubscriptionId(mSubId);
mTelephonyManager = mContext.getSystemService(TelephonyManager.class)
.createForSubscriptionId(mSubId);
}
@Override