Merge "Add target sdk check for behavior change." into oc-dev
am: e5e246ce5c
Change-Id: Ia06fe694f2afe55cd9560c2d6ae9112a6735cf93
This commit is contained in:
@@ -1353,9 +1353,11 @@ final class FragmentManagerImpl extends FragmentManager implements LayoutInflate
|
|||||||
f.performDestroyView();
|
f.performDestroyView();
|
||||||
dispatchOnFragmentViewDestroyed(f, false);
|
dispatchOnFragmentViewDestroyed(f, false);
|
||||||
if (f.mView != null && f.mContainer != null) {
|
if (f.mView != null && f.mContainer != null) {
|
||||||
|
if (getTargetSdk() >= Build.VERSION_CODES.O) {
|
||||||
// Stop any current animations:
|
// Stop any current animations:
|
||||||
f.mView.clearAnimation();
|
f.mView.clearAnimation();
|
||||||
f.mContainer.endViewTransition(f.mView);
|
f.mContainer.endViewTransition(f.mView);
|
||||||
|
}
|
||||||
Animator anim = null;
|
Animator anim = null;
|
||||||
if (mCurState > Fragment.INITIALIZING && !mDestroyed
|
if (mCurState > Fragment.INITIALIZING && !mDestroyed
|
||||||
&& f.mView.getVisibility() == View.VISIBLE
|
&& f.mView.getVisibility() == View.VISIBLE
|
||||||
|
|||||||
Reference in New Issue
Block a user