am 428de84e: Merge "Workaround for the issue where a layout is not being triggered when rotating the screen while customizing. (3329988)" into honeycomb

* commit '428de84edaf0503fd15c51d8ef01ca97af772813':
  Workaround for the issue where a layout is not being triggered when rotating the screen while customizing. (3329988)
This commit is contained in:
Winson Chung
2011-01-31 18:52:58 -08:00
committed by Android Git Automerger
+9
View File
@@ -3476,6 +3476,15 @@ public final class Launcher extends Activity
mSavedInstanceState = null;
}
// Workaround a bug that occurs when rotating the device while the customization mode is
// open, we trigger a new layout on all the CellLayout children.
if (LauncherApplication.isScreenXLarge() && (mState == State.CUSTOMIZE)) {
final int childCount = mWorkspace.getChildCount();
for (int i = 0; i < childCount; ++i) {
mWorkspace.getChildAt(i).requestLayout();
}
}
mWorkspaceLoading = false;
}