Merge "Don't enable USB Tethering UI for monkeys."
This commit is contained in:
committed by
Android (Google) Code Review
commit
5a88d4bd11
@@ -86,7 +86,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);
|
||||
|
Reference in New Issue
Block a user