diff options
author | Adam Cohen <adamcohen@google.com> | 2010-09-15 14:43:42 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2010-09-15 15:02:55 -0700 |
commit | d19d3ca3ec22aeec48b8e555e9764b98ff8cae5f (patch) | |
tree | 20e11fd07d73e1b490a0543fbdf9ef0f72313a2b /src/com/android/launcher2/SmoothPagedView.java | |
parent | 9415eddcf455239a11c19d9868dc74fc0df8e422 (diff) | |
download | packages_apps_trebuchet-d19d3ca3ec22aeec48b8e555e9764b98ff8cae5f.zip packages_apps_trebuchet-d19d3ca3ec22aeec48b8e555e9764b98ff8cae5f.tar.gz packages_apps_trebuchet-d19d3ca3ec22aeec48b8e555e9764b98ff8cae5f.tar.bz2 |
Fixing bug with Launcher page scrolling
Change-Id: Ib9a5a77ffe40dfcde0f846558e5ef0441cb11f7f
Diffstat (limited to 'src/com/android/launcher2/SmoothPagedView.java')
-rw-r--r-- | src/com/android/launcher2/SmoothPagedView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher2/SmoothPagedView.java b/src/com/android/launcher2/SmoothPagedView.java index 73e147a..5f80f25 100644 --- a/src/com/android/launcher2/SmoothPagedView.java +++ b/src/com/android/launcher2/SmoothPagedView.java @@ -96,7 +96,7 @@ public abstract class SmoothPagedView extends PagedView { @Override protected void snapToDestination() { - snapToPageWithVelocity(mCurrentPage, 0); + snapToPageWithVelocity(getPageNearestToCenterOfScreen(), 0); } @Override |