summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/AppsCustomizePagedView.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-07-07 17:01:08 -0700
committerMichael Jurka <mikejurka@google.com>2011-07-07 17:01:08 -0700
commit35aa14d5e33e4f5cccb9fd23be1047f26d67b409 (patch)
treece034d3bae13ad7e341b71e64f567a0f7f65eede /src/com/android/launcher2/AppsCustomizePagedView.java
parenteb99f1648c63ad35e1a528e566aa47df581864f8 (diff)
downloadandroid_packages_apps_Trebuchet-35aa14d5e33e4f5cccb9fd23be1047f26d67b409.tar.gz
android_packages_apps_Trebuchet-35aa14d5e33e4f5cccb9fd23be1047f26d67b409.tar.bz2
android_packages_apps_Trebuchet-35aa14d5e33e4f5cccb9fd23be1047f26d67b409.zip
Don't reset pages in AllApps if not necessary
Diffstat (limited to 'src/com/android/launcher2/AppsCustomizePagedView.java')
-rw-r--r--src/com/android/launcher2/AppsCustomizePagedView.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java
index 888d3d38c..90f28158a 100644
--- a/src/com/android/launcher2/AppsCustomizePagedView.java
+++ b/src/com/android/launcher2/AppsCustomizePagedView.java
@@ -1137,6 +1137,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
addAppsWithoutInvalidate(list);
invalidatePageData();
}
+
@Override
public void reset() {
if (mContentType != ContentType.Applications) {
@@ -1144,7 +1145,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
AppsCustomizeTabHost tabs = (AppsCustomizeTabHost)
mLauncher.findViewById(R.id.apps_customize_pane);
tabs.setCurrentTabByTag(tabs.getTabTagForContentType(ContentType.Applications));
- } else {
+ } else if (getCurrentPage() != 0) {
setCurrentPage(0);
invalidatePageData();
}