diff options
author | 2017-08-17 19:09:12 +0000 | |
---|---|---|
committer | 2017-08-17 19:09:12 +0000 | |
commit | 668feb252a226f39acbad801bf8e256a04cb3e1f (patch) | |
tree | 53f5fb0fadf0e351f3048cc1bb7c280d9d07f442 | |
parent | 2b5e4f13b7c2b27789059ddefb4658f78afc620f (diff) | |
parent | 5bee11f5771d7f8a0694619266e8b4426ac69416 (diff) |
Merge "Don't call surface.remove if surface is null." into oc-mr1-dev am: 1b08a4a8a3
am: 5bee11f577
Change-Id: Ie3f01cf1a7409f82bf13e4d10199e386109d994e
-rw-r--r-- | services/core/java/com/android/server/wm/AppWindowContainerController.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/wm/AppWindowContainerController.java b/services/core/java/com/android/server/wm/AppWindowContainerController.java index 1ca98ac77e1c..f142ff619884 100644 --- a/services/core/java/com/android/server/wm/AppWindowContainerController.java +++ b/services/core/java/com/android/server/wm/AppWindowContainerController.java @@ -632,9 +632,12 @@ public class AppWindowContainerController mContainer.startingSurface = null; mContainer.startingWindow = null; mContainer.startingDisplayed = false; - if (surface == null && DEBUG_STARTING_WINDOW) { - Slog.v(TAG_WM, "startingWindow was set but startingSurface==null, couldn't " - + "remove"); + if (surface == null) { + if (DEBUG_STARTING_WINDOW) { + Slog.v(TAG_WM, "startingWindow was set but startingSurface==null, couldn't " + + "remove"); + } + return; } } else { if (DEBUG_STARTING_WINDOW) { |