Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e6c5cc5 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Automerger Merge Worker
Browse files

Merge "Workaround to force show TaskFragment while back gesture animating."...

Merge "Workaround to force show TaskFragment while back gesture animating." into udc-dev am: 6b02ff57

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21937422



Change-Id: I4c52b6c0eaaa96b3a2fbbd09aeb9de3b5ddbd94c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 8a295a2f 6b02ff57
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -862,8 +862,16 @@ class BackNavigationController {
                WindowContainer target, boolean isOpen) {
            final BackWindowAnimationAdaptor adaptor =
                    new BackWindowAnimationAdaptor(target, isOpen);
            target.startAnimation(target.getPendingTransaction(), adaptor, false /* hidden */,
                    ANIMATION_TYPE_PREDICT_BACK);
            final SurfaceControl.Transaction pt = target.getPendingTransaction();
            target.startAnimation(pt, adaptor, false /* hidden */, ANIMATION_TYPE_PREDICT_BACK);
            // Workaround to show TaskFragment which can be hide in Transitions and won't show
            // during isAnimating.
            if (isOpen && target.asActivityRecord() != null) {
                final TaskFragment fragment = target.asActivityRecord().getTaskFragment();
                if (fragment != null) {
                    pt.show(fragment.mSurfaceControl);
                }
            }
            return adaptor;
        }