From af5e575643973622e0fa47e984fe3dc2165e3203 Mon Sep 17 00:00:00 2001 From: Vairavan Srinivasan Date: Fri, 21 Jan 2011 18:00:52 -0800 Subject: [PATCH] Monkey: request am to show the ANR dialog Default return value of 1 from appNotResponding was to show the ANR dialog in eclair. However, recent version of android's am interpret 1 as to wait. Fix is to change the default return value from 1 to 0. Change-Id: I6620ef54309f1d30ef18a2b60d73b346c2446f93 --- cmds/monkey/src/com/android/commands/monkey/Monkey.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds/monkey/src/com/android/commands/monkey/Monkey.java b/cmds/monkey/src/com/android/commands/monkey/Monkey.java index 68fb2a551..a1f306090 100644 --- a/cmds/monkey/src/com/android/commands/monkey/Monkey.java +++ b/cmds/monkey/src/com/android/commands/monkey/Monkey.java @@ -337,9 +337,9 @@ public class Monkey { synchronized (Monkey.this) { mAbort = true; } - return (mKillProcessAfterError) ? -1 : 1; + return (mKillProcessAfterError) ? -1 : 0; } - return 1; + return 0; } }