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

Commit c36398e9 authored by Darryl L Johnson's avatar Darryl L Johnson
Browse files

Revert creation of home stack from WindowState#getRootTask().

This causes an issue navigating back home after a restart. The root
cause is still being investigated.

Verified manually and w/ fix of launcher tests.

Bug: 149753418
Test: atest NexusLauncherTests:com.android.quickstep.DigitalWellBeingToastTest
Change-Id: Ied638ccea8854c77d88a805ef79200d5bd46e383
parent 367de77f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1513,8 +1513,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
        // Some system windows (e.g. "Power off" dialog) don't have a task, but we would still
        // associate them with some stack to enable dimming.
        final DisplayContent dc = getDisplayContent();
        return mAttrs.type >= FIRST_SYSTEM_WINDOW && dc != null
                ? dc.getOrCreateRootHomeTask() : null;
        return mAttrs.type >= FIRST_SYSTEM_WINDOW && dc != null ? dc.getRootHomeTask() : null;
    }

    /**