OSDN Git Service

Don't allow wifi tethering when running monkeys.
authorAmith Yamasani <yamasani@google.com>
Mon, 9 Jan 2012 22:52:58 +0000 (14:52 -0800)
committerAmith Yamasani <yamasani@google.com>
Mon, 9 Jan 2012 22:52:58 +0000 (14:52 -0800)
Bug: 5607825

Remove the wifi access point settings and wifi tethering checkbox when
monkeys are running.

Change-Id: I64b930ddb791013a08c178561fe29130f1f0e4b8

src/com/android/settings/TetherSettings.java

index e27c96e..867f733 100644 (file)
@@ -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 {