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

Commit f831c1af authored by Tony Huang's avatar Tony Huang Committed by Automerger Merge Worker
Browse files

Merge "Initialize Task surface as invisible" into tm-qpr-dev am: 41aeadba

parents 88ea7d6b 41aeadba
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -609,7 +609,7 @@ class Task extends TaskFragment {
     */
    ActivityRecord mChildPipActivity;

    boolean mLastSurfaceShowing = true;
    boolean mLastSurfaceShowing;

    /**
     * Tracks if a back gesture is in progress.
@@ -4198,13 +4198,7 @@ class Task extends TaskFragment {

    @Override
    boolean showSurfaceOnCreation() {
        if (mCreatedByOrganizer) {
            // Tasks created by the organizer are default visible because they can synchronously
            // update the leash before new children are added to the task.
            return true;
        }
        // Organized tasks handle their own surface visibility
        return !canBeOrganized();
        return false;
    }

    @Override