Release strong Fragment references after exec.

When finished with a Runnable transaction in execPendingActions(),
release the strong reference so that Fragment can be GC'ed.

Bug: 3117761
Change-Id: Ica2f50e363be1bd047bf0474b293efeb814b1264
This commit is contained in:
Jeff Sharkey
2011-07-13 09:36:27 -07:00
parent 3862096cbf
commit 0d32528be3

View File

@@ -1307,6 +1307,7 @@ final class FragmentManagerImpl extends FragmentManager {
mExecutingActions = true;
for (int i=0; i<numActions; i++) {
mTmpActions[i].run();
mTmpActions[i] = null;
}
mExecutingActions = false;
didSomething = true;