diff options
author | Winson Chung <winsonc@google.com> | 2010-12-20 14:41:35 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2010-12-20 14:49:18 -0800 |
commit | a12a2502e6a448d36ab7b8de46de0c1afe40b34f (patch) | |
tree | 9fabe3f0f14bbe0db83682616874a9494b5297e3 /src/com/android/launcher2/CustomizePagedView.java | |
parent | 047379aa61b4719ab38ce595f23732e8f3b1b8e1 (diff) | |
download | android_packages_apps_Trebuchet-a12a2502e6a448d36ab7b8de46de0c1afe40b34f.tar.gz android_packages_apps_Trebuchet-a12a2502e6a448d36ab7b8de46de0c1afe40b34f.tar.bz2 android_packages_apps_Trebuchet-a12a2502e6a448d36ab7b8de46de0c1afe40b34f.zip |
Saving AllApps page when rotating screen, fixing customization rotate flash.
Change-Id: Idc4b919fa34413578fc07be263aadffb062f6115
Diffstat (limited to 'src/com/android/launcher2/CustomizePagedView.java')
-rw-r--r-- | src/com/android/launcher2/CustomizePagedView.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/com/android/launcher2/CustomizePagedView.java b/src/com/android/launcher2/CustomizePagedView.java index 4eb852c60..60f1c90c3 100644 --- a/src/com/android/launcher2/CustomizePagedView.java +++ b/src/com/android/launcher2/CustomizePagedView.java @@ -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 |