Implement Jump Scroll Animation

This requires a decent sized refactor. Namely, rather than relying on
mCurrentPosition we need to rely more upon mLastPosition and
mFinalPosition for increasing and decreasing dot size. We also need to
delay the animation start if we are mega-moving to have the desired
delayed dot change effect.

Bug: 407711750
Test: Verified this works locally. Please see the bug for a screenrecording that shows this correct behavior working.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I83ef113c17f2197e3c02e85f44cf3f05947d2adb
This commit is contained in:
Stefan Andonian committed 2025-05-06 17:06:23 -07:00
1 parent d771ad1951
commit cb16a98e5e
3 files changed
+62 -52

No files matched your search

-3
View File
@@ -1405,9 +1405,6 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
Log.d("Quickswitch", "isFling=false vel=" + velocity
+ " threshold=" + mEasyFlingThresholdVelocity);
}
if (isFling && Flags.enableLauncherVisualRefresh() && mPageIndicator != null) {
mPageIndicator.onFling(isDeltaLeft);
}
if (!mFreeScroll) {
// In the case that the page is moved far to one direction and then is flung