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

Commit 6b1cb352 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #2149126: unable to answer incoming call, various problems

Now that we can have a non-app-window cross-wallpaper animation,
we need to make sure to not access a null app token.

Change-Id: Ia00debd4b2b431d15bd074927a9035e1bc0a6445
parent ff966d5f
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -1396,12 +1396,15 @@ public class WindowManagerService extends IWindowManager.Stub
                }
            }
            
        } else {
        } else if (mLowerWallpaperTarget != null) {
            // Is it time to stop animating?
            if (mLowerWallpaperTarget == null
                    || mLowerWallpaperTarget.mAppToken.animation == null
                    || mUpperWallpaperTarget == null
                    || mUpperWallpaperTarget.mAppToken.animation == null) {
            boolean lowerAnimating = mLowerWallpaperTarget.mAnimation != null
                    || (mLowerWallpaperTarget.mAppToken != null
                            && mLowerWallpaperTarget.mAppToken.animation != null);
            boolean upperAnimating = mUpperWallpaperTarget.mAnimation != null
                    || (mUpperWallpaperTarget.mAppToken != null
                            && mUpperWallpaperTarget.mAppToken.animation != null);
            if (!lowerAnimating || !upperAnimating) {
                if (DEBUG_WALLPAPER) {
                    Log.v(TAG, "No longer animating wallpaper targets!");
                }