diff options
author | Amith Yamasani <yamasani@google.com> | 2012-01-09 14:52:58 -0800 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2012-01-09 14:52:58 -0800 |
commit | aaff44c84f4e88184276064dff9e36eefde3ffcb (patch) | |
tree | 142a1be0b19d394d5dcba6b130dd745963560254 | |
parent | da68fd4620088c1cb3a51cd2064885cbcd1ac621 (diff) | |
download | packages_apps_Settings-aaff44c84f4e88184276064dff9e36eefde3ffcb.tar.gz packages_apps_Settings-aaff44c84f4e88184276064dff9e36eefde3ffcb.tar.bz2 packages_apps_Settings-aaff44c84f4e88184276064dff9e36eefde3ffcb.zip |
Don't allow wifi tethering when running monkeys.
Bug: 5607825
Remove the wifi access point settings and wifi tethering checkbox when
monkeys are running.
Change-Id: I64b930ddb791013a08c178561fe29130f1f0e4b8
-rw-r--r-- | src/com/android/settings/TetherSettings.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/TetherSettings.java b/src/com/android/settings/TetherSettings.java index e27c96ee5..867f73352 100644 --- a/src/com/android/settings/TetherSettings.java +++ b/src/com/android/settings/TetherSettings.java @@ -147,7 +147,7 @@ public class TetherSettings extends SettingsPreferenceFragment getPreferenceScreen().removePreference(mUsbTether); } - if (wifiAvailable) { + if (wifiAvailable && !Utils.isMonkeyRunning()) { mWifiApEnabler = new WifiApEnabler(activity, mEnableWifiAp); initWifiTethering(); } else { |