Fixing issue where flinging the Customize tray would scroll to the incorrect page after update.

Change-Id: I654665b065ad60414286ea16f7feae5054df604c
This commit is contained in:
Winson Chung
2011-02-23 17:07:10 -08:00
parent 199b299308
commit 03929773a4
2 changed files with 13 additions and 1 deletions
@@ -1109,7 +1109,14 @@ public class CustomizePagedView extends PagedViewWithDraggableItems
}
// bound the current page
setCurrentPage(Math.max(0, Math.min(childCount - 1, getCurrentPage())));
requestLayout();
post(new Runnable() {
@Override
public void run() {
setCurrentPage(Math.max(0, Math.min(childCount - 1, getCurrentPage())));
forceUpdateAdjacentPagesAlpha();
}
});
}
@Override