Merge "Fix NPE in deferToPendingTransaction." into nyc-mr1-dev
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user