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

Commit 2446d706 authored by Alex Chau's avatar Alex Chau Committed by Android (Google) Code Review
Browse files

Merge "Enable overlay for all fully visible tasks" into tm-qpr-dev

parents 5672b099 fb790ea6
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));
        }
    }