Merge "Fix NPE in overridePlayingAppAnimations" into nyc-mr1-dev

This commit is contained in:
Jorim Jaggi
2016-09-30 09:02:11 +00:00
committed by Android (Google) Code Review

View File

@@ -846,6 +846,9 @@ class AppWindowToken extends WindowToken {
void overridePlayingAppAnimations(Animation a) {
if (mAppAnimator.isAnimating()) {
final WindowState win = findMainWindow();
if (win == null) {
return;
}
final int width = win.mContainingFrame.width();
final int height = win.mContainingFrame.height();
mAppAnimator.setAnimation(a, width, height, false, STACK_CLIP_NONE);