We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d867b7c + 98a8814 commit ba5df0dCopy full SHA for ba5df0d
1 file changed
policy/src/com/android/internal/policy/impl/GlobalActions.java
@@ -23,6 +23,7 @@
23
import com.android.internal.R;
24
import com.android.internal.widget.LockPatternUtils;
25
26
+import android.app.ActivityManager;
27
import android.app.ActivityManagerNative;
28
import android.app.AlertDialog;
29
import android.app.Dialog;
@@ -370,6 +371,11 @@ public void onPress() {
370
371
new DialogInterface.OnClickListener() {
372
@Override
373
public void onClick(DialogInterface dialog, int which) {
374
+ // don't actually trigger the bugreport if we are running stability
375
+ // tests via monkey
376
+ if (ActivityManager.isUserAMonkey()) {
377
+ return;
378
+ }
379
// Add a little delay before executing, to give the
380
// dialog a chance to go away before it takes a
381
// screenshot.
0 commit comments