Merge "Fix NPE in deferToPendingTransaction." into nyc-mr1-dev

This commit is contained in:
Rob Carr
2016-08-12 20:00:05 +00:00
committed by Android (Google) Code Review

View File

@@ -2076,7 +2076,8 @@ class WindowStateAnimator {
if (time > mDeferTransactionTime + PENDING_TRANSACTION_FINISH_WAIT_TIME) {
mDeferTransactionTime = -1;
mDeferTransactionUntilFrame = -1;
} else {
} else if (mWin.mAttachedWindow != null &&
mWin.mAttachedWindow.mWinAnimator.hasSurface()) {
mSurfaceController.deferTransactionUntil(
mWin.mAttachedWindow.mWinAnimator.mSurfaceController.getHandle(),
mDeferTransactionUntilFrame);