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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user