Loading libs/WindowManager/Shell/src/com/android/wm/shell/freeform/FreeformTaskTransitionHandler.java +7 −2 Original line number Diff line number Diff line Loading @@ -254,8 +254,13 @@ public class FreeformTaskTransitionHandler finishT.hide(sc); final Rect startBounds = new Rect(change.getStartAbsBounds()); animator.addUpdateListener(animation -> { t.setPosition(sc, startBounds.left, startBounds.top + (animation.getAnimatedFraction() * screenHeight)); final float newTop = startBounds.top + (animation.getAnimatedFraction() * screenHeight); t.setPosition(sc, startBounds.left, newTop); if (newTop > screenHeight) { // At this point the task surface is off-screen, so hide it to prevent flicker // failures. See b/377651666. t.hide(sc); } t.apply(); }); animator.addListener( Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/freeform/FreeformTaskTransitionHandler.java +7 −2 Original line number Diff line number Diff line Loading @@ -254,8 +254,13 @@ public class FreeformTaskTransitionHandler finishT.hide(sc); final Rect startBounds = new Rect(change.getStartAbsBounds()); animator.addUpdateListener(animation -> { t.setPosition(sc, startBounds.left, startBounds.top + (animation.getAnimatedFraction() * screenHeight)); final float newTop = startBounds.top + (animation.getAnimatedFraction() * screenHeight); t.setPosition(sc, startBounds.left, newTop); if (newTop > screenHeight) { // At this point the task surface is off-screen, so hide it to prevent flicker // failures. See b/377651666. t.hide(sc); } t.apply(); }); animator.addListener( Loading