Merge "Fixing NPE when animating bounds."

This commit is contained in:
Winson Chung
2017-03-21 19:59:06 +00:00
committed by Android (Google) Code Review

View File

@@ -64,6 +64,9 @@ public class PinnedStackWindowController extends StackWindowController {
mContainer.getBounds(originalBounds);
mContainer.setAnimatingBounds(toBounds);
UiThread.getHandler().post(() -> {
if (mContainer == null) {
return;
}
mService.mBoundsAnimationController.animateBounds(mContainer, originalBounds,
toBounds, animationDuration, moveToFullscreen);
});