Merge "Dump warning logs to prevent app crash while no top-resumed changes" into rvc-qpr-dev

This commit is contained in:
Louis Chang
2021-03-31 06:15:30 +00:00
committed by Android (Google) Code Review

View File

@@ -4602,6 +4602,10 @@ public final class ActivityThread extends ClientTransactionHandler {
}
if (r.isTopResumedActivity == onTop) {
if (!Build.IS_DEBUGGABLE) {
Slog.w(TAG, "Activity top position already set to onTop=" + onTop);
return;
}
throw new IllegalStateException("Activity top position already set to onTop=" + onTop);
}