Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67991901 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Fix NPE in overridePlayingAppAnimations

am: 6e5f3d2e

Change-Id: I72f9c86885a5fbe4ca47904c5a7a2b134bb0ac29
parents eae871f1 6e5f3d2e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);