am 78a9b676: Merge "Remove over aggressive optimization." into jb-dev
* commit '78a9b67691d08e7347ab7bed7708fa09680ee71f': Remove over aggressive optimization.
This commit is contained in:
@@ -496,15 +496,7 @@ public class WindowAnimator {
|
|||||||
|
|
||||||
final int N = mWinAnimators.size();
|
final int N = mWinAnimators.size();
|
||||||
for (int i = 0; i < N; i++) {
|
for (int i = 0; i < N; i++) {
|
||||||
final WindowStateAnimator winAnimator = mWinAnimators.get(i);
|
mWinAnimators.get(i).prepareSurfaceLocked(true);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mDimParams != null) {
|
if (mDimParams != null) {
|
||||||
|
|||||||
@@ -1063,7 +1063,10 @@ class WindowStateAnimator {
|
|||||||
|
|
||||||
setSurfaceBoundaries(recoveringMemory);
|
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();
|
hide();
|
||||||
mAnimator.hideWallpapersLocked(w);
|
mAnimator.hideWallpapersLocked(w);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user