Skip to content

Commit 6b16286

Browse files
chethaaseAndroid (Google) Code Review
authored andcommitted
Merge "Notify windows when window animations complete" into jb-dev
2 parents 230e86a + 198e564 commit 6b16286

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/java/com/android/server/wm/WindowAnimator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ synchronized void animate() {
454454
mPendingLayoutChanges = 0;
455455
mCurrentTime = SystemClock.uptimeMillis();
456456
mBulkUpdateParams = 0;
457+
boolean wasAnimating = mAnimating;
457458
mAnimating = false;
458459
if (WindowManagerService.DEBUG_WINDOW_TRACE) {
459460
Slog.i(TAG, "!!! animate: entry time=" + mCurrentTime);
@@ -509,6 +510,8 @@ synchronized void animate() {
509510

510511
if (mAnimating) {
511512
mService.scheduleAnimationLocked();
513+
} else if (wasAnimating) {
514+
mService.requestTraversalLocked();
512515
}
513516
if (WindowManagerService.DEBUG_WINDOW_TRACE) {
514517
Slog.i(TAG, "!!! animate: exit mAnimating=" + mAnimating

0 commit comments

Comments
 (0)