summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2013-09-29 18:35:10 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-29 18:35:10 -0700
commit35ef6aae304e4b62f492a2ac7f05c986c7fe6a6b (patch)
tree069331a2fd4479868c68403bea8d4d7f5f0faeb9
parentaaf8727eeef17f0b758f83feb79cc861acd28798 (diff)
parent0655904abd2e67f3c4c5b9e8e57cee6f8f562076 (diff)
downloadandroid_packages_apps_Trebuchet-35ef6aae304e4b62f492a2ac7f05c986c7fe6a6b.tar.gz
android_packages_apps_Trebuchet-35ef6aae304e4b62f492a2ac7f05c986c7fe6a6b.tar.bz2
android_packages_apps_Trebuchet-35ef6aae304e4b62f492a2ac7f05c986c7fe6a6b.zip
am 0655904a: Fixing regression in reordering (issue 10994971)
* commit '0655904abd2e67f3c4c5b9e8e57cee6f8f562076': Fixing regression in reordering (issue 10994971)
-rw-r--r--src/com/android/launcher3/PagedView.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/com/android/launcher3/PagedView.java b/src/com/android/launcher3/PagedView.java
index 9cfb3d911..41687d383 100644
--- a/src/com/android/launcher3/PagedView.java
+++ b/src/com/android/launcher3/PagedView.java
@@ -925,12 +925,6 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
mFirstLayout = false;
}
- if (isPageMoving()) {
- // If the page is moving, then snap it to the final position to ensure we don't get
- // stuck between pages
- snapToDestination();
- }
-
if (childCount > 0) {
final int index = isLayoutRtl() ? 0 : childCount - 1;
mMaxScrollX = getScrollForPage(index);
@@ -2324,6 +2318,11 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
loadAssociatedPages(mCurrentPage, immediateAndOnly);
requestLayout();
}
+ if (isPageMoving()) {
+ // If the page is moving, then snap it to the final position to ensure we don't get
+ // stuck between pages
+ snapToDestination();
+ }
}
// Animate the drag view back to the original position