Merge changes I08fcd278,I1f496bb7
* changes: Detect animation completions like we used to. Previous approximations weren't indicating completion and windows weren't being layered correctly as a result. debug
This commit is contained in:
committed by
Android (Google) Code Review
commit
c38358025d
@@ -7685,8 +7685,6 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
}
|
||||
}
|
||||
|
||||
final boolean wasAnimating = w.mWasAnimating;
|
||||
|
||||
// If the window has moved due to its containing
|
||||
// content frame changing, then we'd like to animate
|
||||
// it. The checks here are ordered by what is least
|
||||
@@ -7705,8 +7703,13 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
w.mAnimDh = innerDh;
|
||||
}
|
||||
|
||||
// Execute animation.
|
||||
final boolean nowAnimating = w.isAnimating();
|
||||
final boolean wasAnimating = w.mWasAnimating;
|
||||
final boolean nowAnimating = w.mLocalAnimating;
|
||||
|
||||
if (DEBUG_WALLPAPER) {
|
||||
Slog.v(TAG, w + ": wasAnimating=" + wasAnimating +
|
||||
", nowAnimating=" + nowAnimating);
|
||||
}
|
||||
|
||||
// If this window is animating, make a note that we have
|
||||
// an animating window and take care of a request to run
|
||||
|
||||
@@ -982,7 +982,7 @@ final class WindowState implements WindowManagerPolicy.WindowState {
|
||||
boolean stepAnimationLocked(long currentTime) {
|
||||
// Save the animation state as it was before this step so WindowManagerService can tell if
|
||||
// we just started or just stopped animating by comparing mWasAnimating with isAnimating().
|
||||
mWasAnimating = isAnimating();
|
||||
mWasAnimating = mAnimating;
|
||||
if (!mService.mDisplayFrozen && mService.mPolicy.isScreenOnFully()) {
|
||||
// We will run animations as long as the display isn't frozen.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user