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
This commit is contained in:
Vairavan Srinivasan
2011-01-21 18:00:52 -08:00
parent dde7492d4b
commit af5e575643

View File

@@ -337,9 +337,9 @@ public class Monkey {
synchronized (Monkey.this) {
mAbort = true;
}
return (mKillProcessAfterError) ? -1 : 1;
return (mKillProcessAfterError) ? -1 : 0;
}
return 1;
return 0;
}
}