am d9546fc6: Don\'t recreate pages every time you go to All Apps
* commit 'd9546fc66b9492ef0c10d2baf2fed0260b85b64c': Don't recreate pages every time you go to All Apps
This commit is contained in:
@@ -935,12 +935,12 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setContentType(ContentType type) {
|
public void setContentType(ContentType type) {
|
||||||
int page = getCurrentPage();
|
// Widgets appear to be cleared every time you leave, always force invalidate for them
|
||||||
if (mContentType != type) {
|
if (mContentType != type || type == ContentType.Widgets) {
|
||||||
page = 0;
|
int page = (mContentType != type) ? 0 : getCurrentPage();
|
||||||
|
mContentType = type;
|
||||||
|
invalidatePageData(page, true);
|
||||||
}
|
}
|
||||||
mContentType = type;
|
|
||||||
invalidatePageData(page, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ContentType getContentType() {
|
public ContentType getContentType() {
|
||||||
|
|||||||
Reference in New Issue
Block a user