Close task menu when clicking on its icon

Bug: 70294936
Change-Id: I1e774626c73b06d60da9b3be40d1ec80ac8eaa2d
This commit is contained in:
Tony Wickham
2018-02-23 15:50:01 -08:00
parent 33d1c3c0ea
commit 03f62371de
@@ -144,6 +144,7 @@ public class TaskMenuView extends AbstractFloatingView {
icon.setBounds(0, 0, iconSize, iconSize);
mTaskIconAndName.setCompoundDrawables(null, icon, null, null);
mTaskIconAndName.setText(TaskUtils.getTitle(mLauncher, taskView.getTask()));
mTaskIconAndName.setOnClickListener(v -> close(true));
for (TaskSystemShortcut menuOption : MENU_OPTIONS) {
OnClickListener onClickListener = menuOption.getOnClickListener(mLauncher, taskView);