Merge "Add target sdk check for behavior change." into oc-dev

am: e5e246ce5c

Change-Id: I3734ee5cd46536a015a8fc60bf8b57818800c792
This commit is contained in:
George Mount
2017-06-09 23:49:21 +00:00
committed by android-build-merger

View File

@@ -1355,9 +1355,11 @@ final class FragmentManagerImpl extends FragmentManager implements LayoutInflate
f.performDestroyView();
dispatchOnFragmentViewDestroyed(f, false);
if (f.mView != null && f.mContainer != null) {
// Stop any current animations:
f.mView.clearAnimation();
f.mContainer.endViewTransition(f.mView);
if (getTargetSdk() >= Build.VERSION_CODES.O) {
// Stop any current animations:
f.mView.clearAnimation();
f.mContainer.endViewTransition(f.mView);
}
Animator anim = null;
if (mCurState > Fragment.INITIALIZING && !mDestroyed
&& f.mView.getVisibility() == View.VISIBLE