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

Commit 8ea5428c authored by zoey chen's avatar zoey chen
Browse files

[Setting] Use @SystemApi to replace the hidden api

Bug: 145785535
Test: make
Change-Id: I32554eec8e9f0477a7342a8137a32939b5393fad
parent a90c5186
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)