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

Commit 82f05a85 authored by Pat Manning's avatar Pat Manning Committed by Android (Google) Code Review
Browse files

Merge "Set grid progress even when task count is 0." into tm-qpr-dev

parents b96e0845 50b335fb
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -2769,13 +2769,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
     * @param gridProgress 0 = carousel; 1 = 2 row grid.
     */
    private void setGridProgress(float gridProgress) {
        int taskCount = getTaskViewCount();
        if (taskCount == 0) {
            return;
        }

        mGridProgress = gridProgress;

        int taskCount = getTaskViewCount();
        for (int i = 0; i < taskCount; i++) {
            requireTaskViewAt(i).setGridProgress(gridProgress);
        }