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

This commit is contained in:
Alex Chau
2022-07-08 09:34:53 +00:00
committed by Android (Google) Code Review

View File

@@ -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));
}
}