am 4f1a2db3: Merge "Fixing issue where we may continue to restore the wrong page after resetting."

* commit '4f1a2db34498ba6addb0d0307bbd33ab25ddcee1':
  Fixing issue where we may continue to restore the wrong page after resetting.
This commit is contained in:
Winson Chung
2012-01-11 12:06:07 -08:00
committed by Android Git Automerger
@@ -1490,6 +1490,9 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
@Override
public void reset() {
// If we have reset, then we should not continue to restore the previous state
mSaveInstanceStateItemIndex = -1;
AppsCustomizeTabHost tabHost = getTabHost();
String tag = tabHost.getCurrentTabTag();
if (tag != null) {
@@ -1497,6 +1500,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
tabHost.setCurrentTabFromContent(ContentType.Applications);
}
}
if (mCurrentPage != 0) {
invalidatePageData(0);
}