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

Commit 42db9369 authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am 78a9b676: Merge "Remove over aggressive optimization." into jb-dev

* commit '78a9b676':
  Remove over aggressive optimization.
parents 1c92459a 78a9b676
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -496,15 +496,7 @@ public class WindowAnimator {

            final int N = mWinAnimators.size();
            for (int i = 0; i < N; i++) {
                final WindowStateAnimator winAnimator = mWinAnimators.get(i);
                if (winAnimator.mWin.mIsWallpaper && mService.mWallpaperTarget == null) {
                    if (!winAnimator.mWin.mWallpaperVisible && !winAnimator.mLastHidden) {
                        // Wallpaper is no longer visible and there is no wp target => hide it.
                        winAnimator.hide();
                    }
                    continue;
                }
                winAnimator.prepareSurfaceLocked(true);
                mWinAnimators.get(i).prepareSurfaceLocked(true);
            }

            if (mDimParams != null) {
+4 −1
Original line number Diff line number Diff line
@@ -1063,7 +1063,10 @@ class WindowStateAnimator {

        setSurfaceBoundaries(recoveringMemory);

        if (w.mAttachedHidden || !w.isReadyForDisplay()) {
        if (mWin.mIsWallpaper && !mWin.mWallpaperVisible) {
            // Wallpaper is no longer visible and there is no wp target => hide it.
            hide();
        } else if (w.mAttachedHidden || !w.isReadyForDisplay()) {
            hide();
            mAnimator.hideWallpapersLocked(w);