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

Commit 7ec7514f authored by Zoey Chen's avatar Zoey Chen Committed by android-build-merger
Browse files

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

am: e74208c8

Change-Id: If091c3ba75733da4cb8c509409c070de7e5c625d
parents 27c52d5e e74208c8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -104,9 +104,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)