diff options
author | Irfan Sheriff <isheriff@google.com> | 2011-11-01 14:58:31 -0700 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2011-11-01 14:58:31 -0700 |
commit | 642a3c78f89faa07aa5a3fbe0610cea9eb64bfbb (patch) | |
tree | af59d06243311e62d2a0d3548044ed9d0dc38905 /src/com/android/settings/TetherSettings.java | |
parent | 49a681c4928d63b86fca0a546ee60b4f95d16669 (diff) | |
download | packages_apps_Settings-642a3c78f89faa07aa5a3fbe0610cea9eb64bfbb.tar.gz packages_apps_Settings-642a3c78f89faa07aa5a3fbe0610cea9eb64bfbb.tar.bz2 packages_apps_Settings-642a3c78f89faa07aa5a3fbe0610cea9eb64bfbb.zip |
Use component details to send provisionig intent
Bug: 5544654
Change-Id: I0bd33c2a0d4c657bd10ba966d67ff54c27e42ea1
Diffstat (limited to 'src/com/android/settings/TetherSettings.java')
-rw-r--r-- | src/com/android/settings/TetherSettings.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/settings/TetherSettings.java b/src/com/android/settings/TetherSettings.java index 107b53a94..23fe2c052 100644 --- a/src/com/android/settings/TetherSettings.java +++ b/src/com/android/settings/TetherSettings.java @@ -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 { |