Merge "Add target sdk check for behavior change." into oc-dev
This commit is contained in:
@@ -1353,9 +1353,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
|
||||
|
||||
Reference in New Issue
Block a user