Remove regulatory group setting in advanced wifi setting
Bug: 2378844 Change-Id: I2eefa73cca238ab04842ffc8f8968dac5f953456
This commit is contained in:
@@ -71,12 +71,20 @@ public class AdvancedSettings extends PreferenceActivity
|
|||||||
preference.setOnPreferenceChangeListener(this);
|
preference.setOnPreferenceChangeListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
// /*
|
||||||
* Fix the Run-time IllegalStateException that ListPreference requires an entries
|
// * Fix the Run-time IllegalStateException that ListPreference requires an entries
|
||||||
* array and an entryValues array, this exception occurs when user open/close the
|
// * array and an entryValues array, this exception occurs when user open/close the
|
||||||
* slider in the Regulatory domain dialog.
|
// * slider in the Regulatory domain dialog.
|
||||||
|
// */
|
||||||
|
// initNumChannelsPreference();
|
||||||
|
/**
|
||||||
|
* Remove user control of regulatory domain
|
||||||
|
* channel count settings
|
||||||
*/
|
*/
|
||||||
initNumChannelsPreference();
|
Preference chanPref = findPreference(KEY_NUM_CHANNELS);
|
||||||
|
if (chanPref != null) {
|
||||||
|
getPreferenceScreen().removePreference(chanPref);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -84,7 +92,11 @@ public class AdvancedSettings extends PreferenceActivity
|
|||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
||||||
updateUi();
|
updateUi();
|
||||||
initNumChannelsPreference();
|
/**
|
||||||
|
* Remove user control of regulatory domain
|
||||||
|
* channel count settings
|
||||||
|
*/
|
||||||
|
//initNumChannelsPreference();
|
||||||
initSleepPolicyPreference();
|
initSleepPolicyPreference();
|
||||||
refreshMacAddress();
|
refreshMacAddress();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user