Merge "Maintain TaskView's scroll invariant when swiping down" into sc-dev am: c9744631f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14425536 Change-Id: I8732143225877c09a9a3860b3cec62f2f34dc086
This commit is contained in:
@@ -1658,8 +1658,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
if (endTarget == GestureState.GestureEndTarget.NEW_TASK
|
||||
|| endTarget == GestureState.GestureEndTarget.LAST_TASK) {
|
||||
// When switching to tasks in quick switch, ensures the snapped page's scroll maintain
|
||||
// invariant between quick switch and overview grid, to ensure a smooth animation
|
||||
// transition.
|
||||
// invariant between quick switch and overview, to ensure a smooth animation transition.
|
||||
updateGridProperties();
|
||||
}
|
||||
}
|
||||
@@ -3114,6 +3113,11 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
return new PendingAnimation(duration);
|
||||
}
|
||||
|
||||
// When swiping down from overview to tasks, ensures the snapped page's scroll maintain
|
||||
// invariant between quick switch and overview, to ensure a smooth animation transition.
|
||||
updateGridProperties();
|
||||
updateScrollSynchronously();
|
||||
|
||||
int targetSysUiFlags = tv.getThumbnail().getSysUiStatusNavFlags();
|
||||
final boolean[] passedOverviewThreshold = new boolean[] {false};
|
||||
ValueAnimator progressAnim = ValueAnimator.ofFloat(0, 1);
|
||||
|
||||
Reference in New Issue
Block a user