Merge "Prevent monkey from opening dev options"
This commit is contained in:
committed by
Android (Google) Code Review
commit
63a97d9c50
@@ -134,6 +134,15 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
|
||||
super(UserManager.DISALLOW_DEBUGGING_FEATURES);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle icicle) {
|
||||
super.onCreate(icicle);
|
||||
if (Utils.isMonkeyRunning()) {
|
||||
getActivity().finish();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActivityCreated(Bundle icicle) {
|
||||
super.onActivityCreated(icicle);
|
||||
|
Reference in New Issue
Block a user