diff options
| author | 2010-05-12 12:41:50 -0700 | |
|---|---|---|
| committer | 2010-05-12 14:24:47 -0700 | |
| commit | 18f9ce0dc12f5a3bb113f25cb4c14e646a064a2f (patch) | |
| tree | 565992e1a2166310ed4534136e138eeb4054d802 | |
| parent | 810f5ccb99a8a05a6d1617b19a4efb2399450318 (diff) | |
Skip ActivityWaiter synchronization on Instrumentation.callActivityOnDestroy
Temporary workaround for bug 2630683
Change-Id: Ie9ee922dd1f515fc273cb602cb649174e3b8ae6f
| -rw-r--r-- | core/java/android/app/Instrumentation.java | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/core/java/android/app/Instrumentation.java b/core/java/android/app/Instrumentation.java index 7ed7c49d4177..b937dd6b6b82 100644 --- a/core/java/android/app/Instrumentation.java +++ b/core/java/android/app/Instrumentation.java @@ -1058,19 +1058,21 @@ public class Instrumentation { } public void callActivityOnDestroy(Activity activity) { - if (mWaitingActivities != null) { - synchronized (mSync) { - final int N = mWaitingActivities.size(); - for (int i=0; i<N; i++) { - final ActivityWaiter aw = mWaitingActivities.get(i); - final Intent intent = aw.intent; - if (intent.filterEquals(activity.getIntent())) { - aw.activity = activity; - mMessageQueue.addIdleHandler(new ActivityGoing(aw)); - } - } - } - } + // TODO: the following block causes intermittent hangs when using startActivity + // temporarily comment out until root cause is fixed (bug 2630683) +// if (mWaitingActivities != null) { +// synchronized (mSync) { +// final int N = mWaitingActivities.size(); +// for (int i=0; i<N; i++) { +// final ActivityWaiter aw = mWaitingActivities.get(i); +// final Intent intent = aw.intent; +// if (intent.filterEquals(activity.getIntent())) { +// aw.activity = activity; +// mMessageQueue.addIdleHandler(new ActivityGoing(aw)); +// } +// } +// } +// } activity.performDestroy(); |