Merge "Don't call surface.remove if surface is null." into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-08-17 18:38:04 +00:00
committed by Android (Google) Code Review

View File

@@ -632,9 +632,12 @@ public class AppWindowContainerController
mContainer.startingSurface = null; mContainer.startingSurface = null;
mContainer.startingWindow = null; mContainer.startingWindow = null;
mContainer.startingDisplayed = false; mContainer.startingDisplayed = false;
if (surface == null && DEBUG_STARTING_WINDOW) { if (surface == null) {
Slog.v(TAG_WM, "startingWindow was set but startingSurface==null, couldn't " if (DEBUG_STARTING_WINDOW) {
+ "remove"); Slog.v(TAG_WM, "startingWindow was set but startingSurface==null, couldn't "
+ "remove");
}
return;
} }
} else { } else {
if (DEBUG_STARTING_WINDOW) { if (DEBUG_STARTING_WINDOW) {