diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/TetherSettings.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/com/android/settings/TetherSettings.java b/src/com/android/settings/TetherSettings.java index 9991725..f5bee3a 100644 --- a/src/com/android/settings/TetherSettings.java +++ b/src/com/android/settings/TetherSettings.java @@ -516,16 +516,13 @@ public class TetherSettings extends SettingsPreferenceFragment mWifiConfig = mDialog.getConfig(); if (mWifiConfig != null) { /** - * if soft AP is running, bring up with new config - * else update the configuration alone + * if soft AP is stopped, bring up + * else restart with new config + * TODO: update config on a running access point when framework support is added */ if (mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_ENABLED) { + mWifiManager.setWifiApEnabled(null, false); mWifiManager.setWifiApEnabled(mWifiConfig, true); - /** - * There is no tether notification on changing AP - * configuration. Update status with new config. - */ - mWifiApEnabler.updateConfigSummary(mWifiConfig); } else { mWifiManager.setWifiApConfiguration(mWifiConfig); } |