Merge "Ignore clicks on developer switch UI during monkey test" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
52a3b5c17d
@@ -630,6 +630,9 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
||||
return;
|
||||
}
|
||||
|
||||
if (Utils.isMonkeyRunning()) {
|
||||
return;
|
||||
}
|
||||
mSwitchBar.addOnSwitchChangeListener(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -117,6 +117,9 @@ public class BuildNumberPreferenceController extends AbstractPreferenceControlle
|
||||
if (!TextUtils.equals(preference.getKey(), KEY_BUILD_NUMBER)) {
|
||||
return false;
|
||||
}
|
||||
if (Utils.isMonkeyRunning()) {
|
||||
return false;
|
||||
}
|
||||
// Don't enable developer options for secondary users.
|
||||
if (!mUm.isAdminUser()) {
|
||||
mMetricsFeatureProvider.action(
|
||||
|
||||
Reference in New Issue
Block a user