Apply animation in relayout invisible the old way

We skipped the applyAnimationLocked to work around a problem with
cached animation loading, however app could be animating without
window animator (only app animator) in which case we shouldn't do
the relayout for potential focus change.

Revert to the old behavior and let applyAnimationLocked decide if
we want to relayout for focus change.

bug: 29874980
Change-Id: I6fdfbe41cbafd7017477c0eda9b4fd26e66c517f
This commit is contained in:
Chong Zhang
2016-06-29 16:13:22 -07:00
parent 25242a7bbc
commit 39b80e5c41

View File

@@ -3003,8 +3003,7 @@ public class WindowManagerService extends IWindowManager.Stub
if (win.mAttrs.type == TYPE_APPLICATION_STARTING) {
transit = WindowManagerPolicy.TRANSIT_PREVIEW_DONE;
}
if (win.isWinVisibleLw() && (winAnimator.isAnimationSet() ||
winAnimator.applyAnimationLocked(transit, false))) {
if (win.isWinVisibleLw() && winAnimator.applyAnimationLocked(transit, false)) {
focusMayChange = isDefaultDisplay;
win.mAnimatingExit = true;
win.mWinAnimator.mAnimating = true;