Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7296c37 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Adding workaround to jump in wallpaper offsets." into ub-launcher3-calgary

parents 278958e9 5bc28274
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -208,8 +208,9 @@ public class WallpaperOffsetInterpolator implements Choreographer.FrameCallback
        scheduleUpdate();
        mFinalOffset = Math.max(0f, Math.min(x, 1f));
        if (getNumScreensExcludingEmptyAndCustom() != mNumScreens) {
            if (mNumScreens > 0) {
                // Don't animate if we're going from 0 screens
            if (mNumScreens > 0 && Float.compare(mCurrentOffset, mFinalOffset) != 0) {
                // Don't animate if we're going from 0 screens, or if the final offset is the same
                // as the current offset
                animateToFinal();
            }
            mNumScreens = getNumScreensExcludingEmptyAndCustom();