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

Change-Id: Iaa3f2598325950769d38ad1d6e390ab06ea194d7
This commit is contained in:
Winson Chung committed 2011-01-04 10:22:56 -08:00
1 parent 05542542c9
commit 7d1fcbc409
2 files changed
+19 -21

No files matched your search

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