First task should launch when tapped.
Broken from previous CL. Bug: 79539824 Change-Id: I9c4b00731afeeb815d2c7f3dcaf4ae4f029dec30
This commit is contained in:
@@ -110,6 +110,15 @@ public class TaskView extends FrameLayout implements TaskCallbacks, PageCallback
|
||||
|
||||
public TaskView(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
setOnClickListener((view) -> {
|
||||
if (getTask() == null) {
|
||||
return;
|
||||
}
|
||||
launchTask(true /* animate */);
|
||||
BaseActivity.fromContext(context).getUserEventDispatcher().logTaskLaunchOrDismiss(
|
||||
Touch.TAP, Direction.NONE, ((RecentsView) getParent()).indexOfChild(this),
|
||||
TaskUtils.getComponentKeyForTask(getTask().key));
|
||||
});
|
||||
setOutlineProvider(new TaskOutlineProvider(getResources()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user