Fix for bug 5015232, folder won't open

Change-Id: Icd0527a1afe519ebcf117587c9a61a9e933a6c47
This commit is contained in:
Adam Cohen
2011-07-11 14:44:19 -07:00
parent e0cccab156
commit 51e95039ac

View File

@@ -1314,6 +1314,9 @@ public final class Launcher extends Activity
super.onSaveInstanceState(outState);
outState.putInt(RUNTIME_STATE, mState.ordinal());
// We close any open folder since it will not be re-opened, and we need to make sure
// this state is reflected.
closeFolder();
if (mAddScreen > -1 && mWaitingForResult) {
outState.putInt(RUNTIME_STATE_PENDING_ADD_SCREEN, mAddScreen);