Update hidden API with a persist option.

WifiManager.setNumAllowedChannels now needs a boolean persist arg.
Part of the fix for 1625953.
This commit is contained in:
Robert Greenwalt
2009-05-21 13:47:40 -07:00
parent 76dce58435
commit 1150f5e8e6

View File

@@ -141,7 +141,7 @@ public class AdvancedSettings extends PreferenceActivity
try {
int numChannels = Integer.parseInt((String) newValue);
WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
if (!wifiManager.setNumAllowedChannels(numChannels)) {
if (!wifiManager.setNumAllowedChannels(numChannels, true)) {
Toast.makeText(this, R.string.wifi_setting_num_channels_error,
Toast.LENGTH_SHORT).show();
}