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

Commit cbc52703 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't dismiss split during enter if already visible" into udc-dev am:...

Merge "Don't dismiss split during enter if already visible" into udc-dev am: 1f23db54 am: 0a3a98a1

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



Change-Id: I5eb577cdd9b5e44bc1eb64661b55dc7c6d7708e4
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 030049aa 0a3a98a1
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1516,6 +1516,10 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
            // Legacy transition we need to create divider here, shell transition case we will
            // create it on #finishEnterSplitScreen
            mSplitLayout.init();
        } else {
            // We handle split visibility itself on shell transition, but sometimes we didn't
            // reset it correctly after dismiss by some reason, so just set invisible before active.
            setSplitsVisible(false);
        }
        if (taskInfo != null) {
            setSideStagePosition(startPosition, wct);
@@ -2654,11 +2658,11 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,

        if (mSplitTransitions.mPendingEnter.mExtraTransitType
                == TRANSIT_SPLIT_SCREEN_OPEN_TO_SIDE) {
            // Open to side should only be used when split already active and foregorund.
            if (mainChild == null && sideChild == null) {
                Log.w(TAG, "Launched a task in split, but didn't receive any task in transition.");
                mSplitTransitions.mPendingEnter.cancel((cancelWct, cancelT)
                        -> prepareExitSplitScreen(STAGE_TYPE_UNDEFINED, cancelWct));
                mSplitUnsupportedToast.show();
                // This should happen when the target app is already on front, so just cancel.
                mSplitTransitions.mPendingEnter.cancel(null);
                return true;
            }
        } else {