Fix a couple regressions from resetting AppsCustomizeTabHost

Bug 18409435
Bug 18358080

Change-Id: I07a071342b5c5e062ab2bb562b672d93ba0d5c2e
This commit is contained in:
Adam Cohen
2014-11-19 16:03:20 -08:00
parent 08072c05bf
commit c8f4e1bc88
4 changed files with 13 additions and 6 deletions
@@ -839,6 +839,12 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
cancelAllTasks();
}
@Override
public void trimMemory() {
super.trimMemory();
clearAllWidgetPages();
}
public void clearAllWidgetPages() {
cancelAllTasks();
int count = getChildCount();
@@ -1472,9 +1478,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
}
}
@Override
public void reset() {
super.reset();
// If we have reset, then we should not continue to restore the previous state
mSaveInstanceStateItemIndex = -1;