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

Commit cc740c89 authored by Tony Wickham's avatar Tony Wickham Committed by android-build-merger
Browse files

Merge "Fix incorrect task index bounds" into ub-launcher3-qt-r1-dev

am: 3bbb2026

Change-Id: I59dee8f9906b43708f9c4ec7e033f469cc660c3c
parents 1b0445df 3bbb2026
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ import static com.android.launcher3.LauncherAnimUtils.OVERVIEW_TRANSITION_MS;

import com.android.launcher3.AbstractFloatingView;
import com.android.launcher3.Launcher;
import com.android.launcher3.Utilities;
import com.android.launcher3.allapps.AllAppsTransitionController;
import com.android.launcher3.userevent.nano.LauncherLogProto;
import com.android.quickstep.util.LayoutUtils;
@@ -68,8 +69,8 @@ public class BackgroundAppState extends OverviewState {
        if (taskCount == 0) {
            return super.getOverviewScaleAndTranslation(launcher);
        }
        TaskView dummyTask = recentsView.getTaskViewAt(Math.max(taskCount - 1,
                recentsView.getCurrentPage()));
        TaskView dummyTask = recentsView.getTaskViewAt(Utilities.boundToRange(
                recentsView.getCurrentPage(), 0, taskCount - 1));
        return recentsView.getTempClipAnimationHelper().updateForFullscreenOverview(dummyTask)
                .getScaleAndTranslation();
    }