Loading services/core/java/com/android/server/wm/BoundsAnimationController.java +13 −5 Original line number Diff line number Diff line Loading @@ -401,12 +401,13 @@ public class BoundsAnimationController { + " replacing=" + replacing); if (replacing) { if (existing.isAnimatingTo(to)) { if (existing.isAnimatingTo(to) && (!moveToFullscreen || existing.mMoveToFullscreen) && (!moveFromFullscreen || existing.mMoveFromFullscreen)) { // Just let the current animation complete if it has the same destination as the // one we are trying to start. if (DEBUG) Slog.d(TAG, "animateBounds: same destination as existing=" + existing + " ignoring..."); // one we are trying to start, and, if moveTo/FromFullscreen was requested, already // has that flag set. if (DEBUG) Slog.d(TAG, "animateBounds: same destination and moveTo/From flags as " + "existing=" + existing + ", ignoring..."); return existing; } Loading Loading @@ -434,6 +435,13 @@ public class BoundsAnimationController { } } // We need to keep the previous moveTo/FromFullscreen flag, unless the new animation // specifies a direction. if (!moveFromFullscreen && !moveToFullscreen) { moveToFullscreen = existing.mMoveToFullscreen; moveFromFullscreen = existing.mMoveFromFullscreen; } // Since we are replacing, we skip both animation start and end callbacks existing.cancel(); } Loading services/tests/servicestests/src/com/android/server/wm/BoundsAnimationControllerTests.java +1 −1 Original line number Diff line number Diff line Loading @@ -545,7 +545,7 @@ public class BoundsAnimationControllerTests extends WindowTestsBase { .restart(BOUNDS_SMALLER_FLOATING, false /* expectStartedAndPipModeChangedCallback */) .end() .expectEnded(SCHEDULE_PIP_MODE_CHANGED, !MOVE_TO_FULLSCREEN); .expectEnded(SCHEDULE_PIP_MODE_CHANGED, MOVE_TO_FULLSCREEN); } /** !F->!F w/ CANCEL **/ Loading Loading
services/core/java/com/android/server/wm/BoundsAnimationController.java +13 −5 Original line number Diff line number Diff line Loading @@ -401,12 +401,13 @@ public class BoundsAnimationController { + " replacing=" + replacing); if (replacing) { if (existing.isAnimatingTo(to)) { if (existing.isAnimatingTo(to) && (!moveToFullscreen || existing.mMoveToFullscreen) && (!moveFromFullscreen || existing.mMoveFromFullscreen)) { // Just let the current animation complete if it has the same destination as the // one we are trying to start. if (DEBUG) Slog.d(TAG, "animateBounds: same destination as existing=" + existing + " ignoring..."); // one we are trying to start, and, if moveTo/FromFullscreen was requested, already // has that flag set. if (DEBUG) Slog.d(TAG, "animateBounds: same destination and moveTo/From flags as " + "existing=" + existing + ", ignoring..."); return existing; } Loading Loading @@ -434,6 +435,13 @@ public class BoundsAnimationController { } } // We need to keep the previous moveTo/FromFullscreen flag, unless the new animation // specifies a direction. if (!moveFromFullscreen && !moveToFullscreen) { moveToFullscreen = existing.mMoveToFullscreen; moveFromFullscreen = existing.mMoveFromFullscreen; } // Since we are replacing, we skip both animation start and end callbacks existing.cancel(); } Loading
services/tests/servicestests/src/com/android/server/wm/BoundsAnimationControllerTests.java +1 −1 Original line number Diff line number Diff line Loading @@ -545,7 +545,7 @@ public class BoundsAnimationControllerTests extends WindowTestsBase { .restart(BOUNDS_SMALLER_FLOATING, false /* expectStartedAndPipModeChangedCallback */) .end() .expectEnded(SCHEDULE_PIP_MODE_CHANGED, !MOVE_TO_FULLSCREEN); .expectEnded(SCHEDULE_PIP_MODE_CHANGED, MOVE_TO_FULLSCREEN); } /** !F->!F w/ CANCEL **/ Loading