Fixing issue where rotating device while in widgets pane fails to load.
- Removed some unnecessary code related to dialogs. Change-Id: I5abfc7851c78e6597fd49cc96db5b26bd0976c1c
This commit is contained in:
@@ -315,7 +315,11 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
private boolean testDataReady() {
|
||||
// We only do this test once, and we default to the Applications page, so we only really
|
||||
// have to wait for there to be apps.
|
||||
return !mApps.isEmpty();
|
||||
if (mContentType == AppsCustomizePagedView.ContentType.Widgets) {
|
||||
return !mApps.isEmpty() && !mWidgets.isEmpty();
|
||||
} else {
|
||||
return !mApps.isEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
/** Restores the page for an item at the specified index */
|
||||
@@ -574,7 +578,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
|
||||
public void setContentType(ContentType type) {
|
||||
mContentType = type;
|
||||
invalidatePageData(0, true);
|
||||
invalidatePageData(0, (type != ContentType.Applications));
|
||||
}
|
||||
|
||||
public boolean isContentType(ContentType type) {
|
||||
|
||||
Reference in New Issue
Block a user