Merge "Perform onDestroy when FragmentController is torn down."

This commit is contained in:
TreeHugger Robot
2016-10-28 00:52:24 +00:00
committed by Android (Google) Code Review

View File

@@ -1233,9 +1233,9 @@ final class FragmentManagerImpl extends FragmentManager implements LayoutInflate
int nextState = mCurState;
if (f.mRemoving) {
if (f.isInBackStack()) {
nextState = Fragment.CREATED;
nextState = Math.min(nextState, Fragment.CREATED);
} else {
nextState = Fragment.INITIALIZING;
nextState = Math.min(nextState, Fragment.INITIALIZING);
}
}