summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-01-09 14:52:58 -0800
committerAmith Yamasani <yamasani@google.com>2012-01-09 14:52:58 -0800
commitaaff44c84f4e88184276064dff9e36eefde3ffcb (patch)
tree142a1be0b19d394d5dcba6b130dd745963560254
parentda68fd4620088c1cb3a51cd2064885cbcd1ac621 (diff)
downloadpackages_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.java2
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 {