Perform onDestroy when FragmentController is torn down.
Bug 32457575 Test: I9e33801c34bcb31e3d6ca0df3962cfe1a3203044 Change-Id: Id220dbfb3e42d2c91b99926c1e9b0c556c9b453a
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user