From 77ed8e57242ae6bafa2431167f9ae33008e3f9ee Mon Sep 17 00:00:00 2001 From: Chilun Date: Fri, 27 Aug 2021 16:41:31 +0800 Subject: [PATCH] Workaround to dump error log instead of exception This is a short-term workaround to dump error log instead of throwing the exception to unblock the test. Bug: 209744518 Test: build pass Change-Id: I2ece3b9d85edc1ae43038e6f69b35f59b160a3dd (cherry picked from commit f8fc1326f762012e87f501fb0aeff3adc4c9a9d5) --- core/java/android/app/ActivityThread.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index 46f6597bb042f..35bc661628abb 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -4969,7 +4969,8 @@ public final class ActivityThread extends ClientTransactionHandler Slog.w(TAG, "Activity top position already set to onTop=" + onTop); return; } - throw new IllegalStateException("Activity top position already set to onTop=" + onTop); + // TODO(b/209744518): Remove this short-term workaround while fixing the binder failure. + Slog.e(TAG, "Activity top position already set to onTop=" + onTop); } r.isTopResumedActivity = onTop;