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

Commit fb790ea6 authored by Alex Chau's avatar Alex Chau
Browse files

Enable overlay for all fully visible tasks

Fix: 238310277
Test: In tablet, all fully visible tasks have overlay enabled
Test: In handheld, only current and not adjacent tasks have overlay enabled
Test: No overlay in groupedTaskView
Change-Id: I59b8bebc4e701d3042217f9af222db0b5337ea16
parent eb54e259
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4873,10 +4873,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
    }

    private void updateEnabledOverlays() {
        int overlayEnabledPage = mOverlayEnabled ? getNextPage() : -1;
        int taskCount = getTaskViewCount();
        for (int i = 0; i < taskCount; i++) {
            requireTaskViewAt(i).setOverlayEnabled(i == overlayEnabledPage);
            TaskView taskView = requireTaskViewAt(i);
            taskView.setOverlayEnabled(mOverlayEnabled && isTaskViewFullyVisible(taskView));
        }
    }