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

Commit 13872483 authored by Alex Chau's avatar Alex Chau Committed by Android (Google) Code Review
Browse files

Merge "Check if running task is null in onPrepareGestureEndAnimation" into sc-v2-dev

parents 9d7cc7d5 de6819a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1792,7 +1792,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
                .displayOverviewTasksAsGrid(mActivity.getDeviceProfile())) {
            TaskView runningTaskView = getRunningTaskView();
            float runningTaskPrimaryGridTranslation = 0;
            if (indexOfChild(runningTaskView) != getNextPage()) {
            if (runningTaskView != null && indexOfChild(runningTaskView) != getNextPage()) {
                // Apply the gird translation to running task unless it's being snapped to.
                runningTaskPrimaryGridTranslation = mOrientationHandler.getPrimaryValue(
                        runningTaskView.getGridTranslationX(),