am aae04e43: Prevent monkeys from USB tethering. It disconnects the test host. DO NOT MERGE.

* commit 'aae04e43ec277c095e181933976dfa7bfd044288':
  Prevent monkeys from USB tethering. It disconnects the test host. DO NOT MERGE.
This commit is contained in:
Amith Yamasani
2011-02-11 11:03:56 -08:00
committed by Android Git Automerger

View File

@@ -82,7 +82,7 @@ public class TetherSettings extends PreferenceActivity {
(ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
mUsbRegexs = cm.getTetherableUsbRegexs();
if (mUsbRegexs.length == 0) {
if (mUsbRegexs.length == 0 || Utils.isMonkeyRunning()) {
getPreferenceScreen().removePreference(mUsbTether);
setTitle(R.string.tether_settings_title_wifi);