Fixing issue where flinging the Customize tray would scroll to the incorrect page after update.
Change-Id: I654665b065ad60414286ea16f7feae5054df604c
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user