[RESTRICT AUTOMERGE] 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: 197484331
Test: build pass
Change-Id: I2ece3b9d85edc1ae43038e6f69b35f59b160a3dd
This commit is contained in:
Chilun
2021-08-27 16:41:31 +08:00
committed by Chilun Huang
parent 5f54351908
commit f8fc1326f7

View File

@@ -4911,7 +4911,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/197484331): Remove this short-term workaround while fixing the binder failure.
Slog.e(TAG, "Activity top position already set to onTop=" + onTop);
}
r.isTopResumedActivity = onTop;