Merge "Fix leaking animation" into nyc-dev

This commit is contained in:
Jorim Jaggi
2016-02-22 21:18:31 +00:00
committed by Android (Google) Code Review

View File

@@ -530,7 +530,7 @@ public class WindowAnimator {
for (int i = windows.size() - 1; i >= 0; i--) {
final WindowState win = windows.get(i);
WindowStateAnimator winAnimator = win.mWinAnimator;
if (winAnimator.mSurfaceController == null) {
if (winAnimator.mSurfaceController == null || !winAnimator.hasSurface()) {
continue;
}