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

Commit ab1432c6 authored by Zoey Chen's avatar Zoey Chen Committed by Android (Google) Code Review
Browse files

Merge "[Setting] Use @SystemApi to replace the hidden api"

parents 8e5f76b5 8ea5428c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -105,9 +105,10 @@ public class ResetNetworkConfirm extends InstrumentedFragment {
            p2pFactoryReset(mContext);

            TelephonyManager telephonyManager = (TelephonyManager)
                    mContext.getSystemService(Context.TELEPHONY_SERVICE);
                    mContext.getSystemService(TelephonyManager.class)
                            .createForSubscriptionId(mSubId);
            if (telephonyManager != null) {
                telephonyManager.factoryReset(mSubId);
                telephonyManager.resetSettings();
            }

            NetworkPolicyManager policyManager = (NetworkPolicyManager)