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
This commit is contained in:
Amith Yamasani
2012-01-09 14:52:58 -08:00
parent da68fd4620
commit aaff44c84f

View 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 {