Fix incorrect fragment animation used for hiding fragments
Mirror of support lib patch https://android-review.googlesource.com/#/c/60032/ into frameworks/base. Change-Id: I8d1cb2e217721336674b8e3e2ef8722a8d9baefd
This commit is contained in:
@@ -1169,7 +1169,7 @@ final class FragmentManagerImpl extends FragmentManager {
|
||||
if (!fragment.mHidden) {
|
||||
fragment.mHidden = true;
|
||||
if (fragment.mView != null) {
|
||||
Animator anim = loadAnimator(fragment, transition, true,
|
||||
Animator anim = loadAnimator(fragment, transition, false,
|
||||
transitionStyle);
|
||||
if (anim != null) {
|
||||
anim.setTarget(fragment.mView);
|
||||
|
||||
Reference in New Issue
Block a user