Merge "Correct dissapearing SurfaceView during exit animations."

This commit is contained in:
TreeHugger Robot
2017-03-02 20:20:39 +00:00
committed by Android (Google) Code Review

View File

@@ -1532,6 +1532,13 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
return changed;
}
// Next up we will notify the client that it's visibility has changed.
// We need to prevent it from destroying child surfaces until
// the animation has finished.
if (!visible && isVisibleNow()) {
mWinAnimator.detachChildren();
}
if (visible != isVisibleNow()) {
if (!runningAppAnimation) {
final AccessibilityController accessibilityController =