mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Don't recreate pages every time you go to All Apps
Bug: 11300025 Change-Id: I16ddcf1b435621bb0c0199ca7ac119b9e7ca7214
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user