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

Commit 0f0fd44a authored by Louis Chang's avatar Louis Chang
Browse files

Fixes no dim surface boost when starting home

The TaskFragment#mVisibleRequested is false when home
started and therefore the dim surface was not boost
during the transition animation.

Drops the #isVisibleRequested check since the visibility
of the activity window is still checked in #shouldBoostDimmer.

Bug: 323080222
Test: repro steps on the bug
Change-Id: Ia0242ccf6026da4061acdc752fad35bc36a25b16
parent b23955e7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3750,8 +3750,7 @@ class Task extends TaskFragment {

                // Boost the adjacent TaskFragment for dimmer if needed.
                final TaskFragment taskFragment = wc.asTaskFragment();
                if (taskFragment != null && taskFragment.isEmbedded()
                        && taskFragment.isVisibleRequested()) {
                if (taskFragment != null && taskFragment.isEmbedded()) {
                    final TaskFragment adjacentTf = taskFragment.getAdjacentTaskFragment();
                    if (adjacentTf != null && adjacentTf.shouldBoostDimmer()) {
                        adjacentTf.assignLayer(t, layer++);