mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Merge "Enable overlay for all fully visible tasks" into tm-qpr-dev
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