Ensure that all places we bind tasks also update the doze state.
Bug: 29548227 Change-Id: I352afa7fc0039b951f94a9de4a538aad7d1462f4
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user