Close task menu when clicking on its icon
Bug: 70294936 Change-Id: I1e774626c73b06d60da9b3be40d1ec80ac8eaa2d
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user