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