Merge "Kill running animations on fragment view's when removed." into oc-dev

am: dcc7feb329

Change-Id: If86dd400ef47c543bd62d621f6a16cecf178014b
This commit is contained in:
George Mount
2017-04-21 00:06:58 +00:00
committed by android-build-merger

View File

@@ -1334,6 +1334,9 @@ 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);
Animator anim = null;
if (mCurState > Fragment.INITIALIZING && !mDestroyed
&& f.mView.getVisibility() == View.VISIBLE