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
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user