commit | 63a97d9c50bb65f7a73a74d260344ca9ce938eeb | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Mon Nov 13 22:46:21 2017 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Nov 13 22:46:21 2017 +0000 |
tree | 43af70268d3bd28a8bd3b9fc99e8e7c2f1f8c3ba | |
parent | 50fb75863eca736bd155c36e1a6b498d52dafbc7 [diff] | |
parent | c28b3fda7010a7b265ee89987bf4e54cd6cbd769 [diff] |
Merge "Prevent monkey from opening dev options"
diff --git a/src/com/android/settings/development/DevelopmentSettingsDashboardFragment.java b/src/com/android/settings/development/DevelopmentSettingsDashboardFragment.java index e7dcf58..50dfeff 100644 --- a/src/com/android/settings/development/DevelopmentSettingsDashboardFragment.java +++ b/src/com/android/settings/development/DevelopmentSettingsDashboardFragment.java
@@ -135,6 +135,15 @@ } @Override + public void onCreate(Bundle icicle) { + super.onCreate(icicle); + if (Utils.isMonkeyRunning()) { + getActivity().finish(); + return; + } + } + + @Override public void onActivityCreated(Bundle icicle) { super.onActivityCreated(icicle); // Apply page-level restrictions