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

Commit 9377110f authored by Winson's avatar Winson
Browse files

Ensure that all places we bind tasks also update the doze state.

Bug: 29548227
Change-Id: I352afa7fc0039b951f94a9de4a538aad7d1462f4
parent 43d1f26e
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -1552,11 +1552,6 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
        // Bind the task view to the new task
        bindTaskView(tv, task);

        // If the doze trigger has already fired, then update the state for this task view
        if (mUIDozeTrigger.isAsleep() || Recents.getSystemServices().hasFreeformWorkspaceSupport()) {
            tv.setNoUserInteractionState();
        }

        // Set the new state for this view, including the callbacks and view clipping
        tv.setCallbacks(this);
        tv.setTouchEnabled(true);
@@ -1586,6 +1581,12 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
        // Rebind the task and request that this task's data be filled into the TaskView
        tv.onTaskBound(task, mTouchExplorationEnabled, mDisplayOrientation, mDisplayRect);

        // If the doze trigger has already fired, then update the state for this task view
        if (mUIDozeTrigger.isAsleep() ||
                Recents.getSystemServices().hasFreeformWorkspaceSupport()) {
            tv.setNoUserInteractionState();
        }

        // Load the task data
        Recents.getTaskLoader().loadTaskData(task);
    }