Loading quickstep/src/com/android/quickstep/views/RecentsView.java +5 −4 Original line number Diff line number Diff line Loading @@ -1764,8 +1764,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T // When switching to tasks in quick switch, ensures the snapped page's scroll maintain // invariant between quick switch and overview, to ensure a smooth animation transition. updateGridProperties(); } else if (endTarget == GestureState.GestureEndTarget.RECENTS) { setEnableFreeScroll(true); } } Loading Loading @@ -2906,8 +2904,11 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T boolean isStartShift; if (midpointIndex > -1) { // When there is a midpoint reference task, adjacent tasks have less distance to travel // to reach offscreen. Offset the task position to the task's starting point. int midpointScroll = getScrollForPage(midpointIndex); // to reach offscreen. Offset the task position to the task's starting point, and offset // by current page's scroll diff. int midpointScroll = getScrollForPage(midpointIndex) + mOrientationHandler.getPrimaryScroll(this) - getScrollForPage(mCurrentPage); getPersistentChildPosition(midpointIndex, midpointScroll, taskPosition); float midpointStart = mOrientationHandler.getStart(taskPosition); Loading Loading
quickstep/src/com/android/quickstep/views/RecentsView.java +5 −4 Original line number Diff line number Diff line Loading @@ -1764,8 +1764,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T // When switching to tasks in quick switch, ensures the snapped page's scroll maintain // invariant between quick switch and overview, to ensure a smooth animation transition. updateGridProperties(); } else if (endTarget == GestureState.GestureEndTarget.RECENTS) { setEnableFreeScroll(true); } } Loading Loading @@ -2906,8 +2904,11 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T boolean isStartShift; if (midpointIndex > -1) { // When there is a midpoint reference task, adjacent tasks have less distance to travel // to reach offscreen. Offset the task position to the task's starting point. int midpointScroll = getScrollForPage(midpointIndex); // to reach offscreen. Offset the task position to the task's starting point, and offset // by current page's scroll diff. int midpointScroll = getScrollForPage(midpointIndex) + mOrientationHandler.getPrimaryScroll(this) - getScrollForPage(mCurrentPage); getPersistentChildPosition(midpointIndex, midpointScroll, taskPosition); float midpointStart = mOrientationHandler.getStart(taskPosition); Loading