Loading src/com/android/launcher3/util/WallpaperOffsetInterpolator.java +3 −2 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading
src/com/android/launcher3/util/WallpaperOffsetInterpolator.java +3 −2 Original line number Diff line number Diff line Loading @@ -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(); Loading