Cancelling the current drag when customization filter type changes to prevent crashes.

Change-Id: Iaa3f2598325950769d38ad1d6e390ab06ea194d7
This commit is contained in:
Winson Chung
2011-01-04 10:22:20 -08:00
parent 05542542c9
commit 7d1fcbc409
2 changed files with 19 additions and 21 deletions

View File

@@ -312,6 +312,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems
public void setCustomizationFilter(CustomizationType filterType) {
mCustomizationType = filterType;
cancelDragging();
if (getChildCount() > 0) {
setCurrentPage(0);
updateCurrentPageScroll();