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

Commit 642a3c78 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Use component details to send provisionig intent

Bug: 5544654
Change-Id: I0bd33c2a0d4c657bd10ba966d67ff54c27e42ea1
parent 49a681c4
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -455,13 +455,14 @@ public class TetherSettings extends SettingsPreferenceFragment

        if (enable) {
            //Check if provisioning is needed
            String intentStr = getActivity().getString(
                    com.android.internal.R.string.config_mobile_hotspot_provision_intent);
            String[] appDetails = getResources().getStringArray(
                    com.android.internal.R.array.config_mobile_hotspot_provision_app);

            if (TextUtils.isEmpty(intentStr)) {
            if (appDetails.length != 2) {
                mWifiApEnabler.setSoftapEnabled(true);
            } else {
                Intent intent = new Intent(intentStr);
                Intent intent = new Intent(Intent.ACTION_MAIN);
                intent.setClassName(appDetails[0], appDetails[1]);
                startActivityForResult(intent, MHS_REQUEST);
            }
        } else {