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.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) {