Merge "[wm] Drop no focused window ANR request if the activity is stopped"

This commit is contained in:
Vishnu Nair
2023-02-07 17:06:12 +00:00
committed by Android (Google) Code Review

View File

@@ -81,6 +81,10 @@ class AnrController {
Slog.e(TAG_WM, "Unknown app appToken:" + applicationHandle.name
+ ". Dropping notifyNoFocusedWindowAnr request");
return;
} else if (activity.mAppStopped) {
Slog.d(TAG_WM, "App is in stopped state:" + applicationHandle.name
+ ". Dropping notifyNoFocusedWindowAnr request");
return;
}
// App is unresponsive, but we are actively trying to give focus to a window.