Ignore clicks on developer switch UI during monkey test
Change-Id: I10c4771386bb38e117848da385090dec78e4a2f8 Fix: 63852950 Test: robotests
This commit is contained in:
@@ -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