commit | 2c9f203aad9df59171be155c45b7ed2654499d6a | [log] [tgz] |
---|---|---|
author | Wale Ogunwale <ogunwale@google.com> | Fri Jun 02 06:50:50 2017 -0700 |
committer | Wale Ogunwale <ogunwale@google.com> | Fri Jun 02 08:37:39 2017 -0700 |
tree | 18f4339ee2fc7820ad2af6b9c336a5c779098e37 | |
parent | 1ac325e4d5d0e03271b4c67b56117d39bcdcfaeb [diff] [blame] |
Track added/removed window when focus is null Improves the blaming of ANRs by determining if an app added windows after it was launched. Bug: 38121026 Test: Log inspection Change-Id: Id86c1981150cf546c92d786ad45d5c2dda5573e0
diff --git a/services/core/java/com/android/server/wm/Task.java b/services/core/java/com/android/server/wm/Task.java index 818df01..bfebca8 100644 --- a/services/core/java/com/android/server/wm/Task.java +++ b/services/core/java/com/android/server/wm/Task.java
@@ -163,6 +163,8 @@ @VisibleForTesting boolean shouldDeferRemoval() { + // TODO: This should probably return false if mChildren.isEmpty() regardless if the stack + // is animating... return hasWindowsAlive() && mStack.isAnimating(); }