Fixed a Settings crash.

+ When in Settings->More... we will no longer provide a tethering option
if tethering requires provisioning, but the provisioning app is invalid.

Bug: 17671381
Change-Id: I48a8178865a7ffddec714c1f6ee6f18d34801b60
This commit is contained in:
PauloftheWest
2014-09-26 16:05:44 -07:00
parent 5c664d8e20
commit 29aab7a2ad
2 changed files with 30 additions and 4 deletions

View File

@@ -367,6 +367,10 @@ public class WirelessSettings extends SettingsPreferenceFragment
} else {
Preference p = findPreference(KEY_TETHER_SETTINGS);
p.setTitle(Utils.getTetheringLabel(cm));
// Grey out if provisioning is not available.
p.setEnabled(!TetherSettings
.isProvisioningNeededButUnavailable(getActivity()));
}
// Enable link to CMAS app settings depending on the value in config.xml.