Merge "Dump warning logs to prevent app crash while no top-resumed changes" into rvc-qpr-dev am: b6d433cdbd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13896651 Change-Id: I199c71ab75007a6fef25c71ecf433d2f939e43e9
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user