Fixing NPE when animating bounds.

Bug: 36163225
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I68f807f80768d279cdd55243592f87d3f752b1c6
This commit is contained in:
Winson Chung
2017-03-20 20:06:46 -07:00
parent 914c4ab1ed
commit bb25054655

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);
});