Saving AllApps page when rotating screen, fixing customization rotate flash.

Change-Id: Idc4b919fa34413578fc07be263aadffb062f6115
This commit is contained in:
Winson Chung
2010-12-20 14:41:35 -08:00
parent 047379aa61
commit a12a2502e6
3 changed files with 93 additions and 75 deletions

View File

@@ -311,12 +311,18 @@ public class CustomizePagedView extends PagedViewWithDraggableItems
public void setCustomizationFilter(CustomizationType filterType) {
mCustomizationType = filterType;
setCurrentPage(0);
updateCurrentPageScroll();
invalidatePageData();
if (getChildCount() > 0) {
setCurrentPage(0);
updateCurrentPageScroll();
invalidatePageData();
// End the current choice mode so that we don't carry selections across tabs
endChoiceMode();
// End the current choice mode so that we don't carry selections across tabs
endChoiceMode();
}
}
public CustomizationType getCustomizationFilter() {
return mCustomizationType;
}
@Override