summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2011-07-26 14:01:22 -0700
committerIrfan Sheriff <isheriff@google.com>2011-07-27 14:05:37 -0700
commit233577cc255561443114d6726792b9df06c2a2a1 (patch)
treebff439ceeea18ccf8e3fd52decf86dc70b1c2312 /src/com
parenta7c32ad74996c9fcb0d1d1481f191f0720197e49 (diff)
downloadpackages_apps_settings-233577cc255561443114d6726792b9df06c2a2a1.zip
packages_apps_settings-233577cc255561443114d6726792b9df06c2a2a1.tar.gz
packages_apps_settings-233577cc255561443114d6726792b9df06c2a2a1.tar.bz2
Restart soft Ap on a running config change
Bug: 5079339 Change-Id: I083548ef5ab3ce177e7fa3e7375a68b52bb576d7
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/settings/TetherSettings.java11
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);
}