Merge "Dump warning logs to prevent app crash while no top-resumed changes" into rvc-qpr-dev
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