Minor change to use defined key rather than a string.

This commit is contained in:
Neel Parekh
2009-10-22 18:30:00 -07:00
parent e304b9f4f7
commit 62d3407de4

View File

@@ -143,7 +143,7 @@ public class WifiSettings extends PreferenceActivity implements WifiLayer.Callba
// * this ordering logic is in AccessPointPreference's compareTo
mApCategory.setOrderingAsAdded(false);
if (!getIntent().getBooleanExtra("only_access_points", false)) {
if (!getIntent().getBooleanExtra(KEY_ONLY_ACCESS_POINTS, false)) {
mWifiEnabled = (CheckBoxPreference) preferenceScreen.findPreference(KEY_WIFI_ENABLED);
mWifiEnabler = new WifiEnabler(this, (WifiManager) getSystemService(WIFI_SERVICE),
mWifiEnabled);