am bd9ea192: am 65b4a2ef: am d9546fc6: Don\'t recreate pages every time you go to All Apps

* commit 'bd9ea192b594f41f1f4e50426083c08ec0d4d166':
  Don't recreate pages every time you go to All Apps
This commit is contained in:
Michael Jurka
2014-02-14 20:52:34 +00:00
committed by Android Git Automerger
@@ -935,12 +935,12 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
}
public void setContentType(ContentType type) {
int page = getCurrentPage();
if (mContentType != type) {
page = 0;
// Widgets appear to be cleared every time you leave, always force invalidate for them
if (mContentType != type || type == ContentType.Widgets) {
int page = (mContentType != type) ? 0 : getCurrentPage();
mContentType = type;
invalidatePageData(page, true);
}
mContentType = type;
invalidatePageData(page, true);
}
public ContentType getContentType() {