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

Commit 298d7c19 authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

Merge "Skip immediate hiding from finishTransition" into tm-qpr-dev am: d62ad11b

parents 2dfb7ee9 d62ad11b
Loading
Loading
Loading
Loading
+8 −2
Original line number Original line Diff line number Diff line
@@ -671,7 +671,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
    private boolean mCurrentLaunchCanTurnScreenOn = true;
    private boolean mCurrentLaunchCanTurnScreenOn = true;


    /** Whether our surface was set to be showing in the last call to {@link #prepareSurfaces} */
    /** Whether our surface was set to be showing in the last call to {@link #prepareSurfaces} */
    private boolean mLastSurfaceShowing = true;
    private boolean mLastSurfaceShowing;


    /**
    /**
     * The activity is opaque and fills the entire space of this task.
     * The activity is opaque and fills the entire space of this task.
@@ -5499,7 +5499,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        // no animation but there will still be a transition set.
        // no animation but there will still be a transition set.
        // We still need to delay hiding the surface such that it
        // We still need to delay hiding the surface such that it
        // can be synchronized with showing the next surface in the transition.
        // can be synchronized with showing the next surface in the transition.
        if (!isVisible() && !delayed && !displayContent.mAppTransition.isTransitionSet()) {
        if (!usingShellTransitions && !isVisible() && !delayed
                && !displayContent.mAppTransition.isTransitionSet()) {
            SurfaceControl.openTransaction();
            SurfaceControl.openTransaction();
            try {
            try {
                forAllWindows(win -> {
                forAllWindows(win -> {
@@ -7437,6 +7438,11 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        }
        }
    }
    }


    @Override
    boolean showSurfaceOnCreation() {
        return false;
    }

    @Override
    @Override
    void prepareSurfaces() {
    void prepareSurfaces() {
        final boolean show = isVisible() || isAnimating(PARENTS,
        final boolean show = isVisible() || isAnimating(PARENTS,
+0 −8
Original line number Original line Diff line number Diff line
@@ -635,7 +635,6 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
        if (showSurfaceOnCreation()) {
        if (showSurfaceOnCreation()) {
            getSyncTransaction().show(mSurfaceControl);
            getSyncTransaction().show(mSurfaceControl);
        }
        }
        onSurfaceShown(getSyncTransaction());
        updateSurfacePositionNonOrganized();
        updateSurfacePositionNonOrganized();
    }
    }


@@ -687,13 +686,6 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
        scheduleAnimation();
        scheduleAnimation();
    }
    }


    /**
     * Called when the surface is shown for the first time.
     */
    void onSurfaceShown(Transaction t) {
        // do nothing
    }

    // Temp. holders for a chain of containers we are currently processing.
    // Temp. holders for a chain of containers we are currently processing.
    private final LinkedList<WindowContainer> mTmpChain1 = new LinkedList<>();
    private final LinkedList<WindowContainer> mTmpChain1 = new LinkedList<>();
    private final LinkedList<WindowContainer> mTmpChain2 = new LinkedList<>();
    private final LinkedList<WindowContainer> mTmpChain2 = new LinkedList<>();