Fixing folder icons not handling clicks

Change-Id: I52c21086d5734783ffc26e75b301ecce1a8bb956
This commit is contained in:
Sunny Goyal
2018-03-09 13:09:49 -08:00
parent 016d7e93c1
commit 972d121edb
2 changed files with 3 additions and 10 deletions

View File

@@ -45,6 +45,7 @@ import com.android.launcher3.Workspace.ItemOperator;
import com.android.launcher3.anim.Interpolators;
import com.android.launcher3.keyboard.ViewGroupFocusHelper;
import com.android.launcher3.pageindicators.PageIndicatorDots;
import com.android.launcher3.touch.ItemClickHandler;
import com.android.launcher3.util.Thunk;
import java.util.ArrayList;
@@ -237,7 +238,7 @@ public class FolderPagedView extends PagedView<PageIndicatorDots> {
R.layout.folder_application, null, false);
textView.applyFromShortcutInfo(item);
textView.setHapticFeedbackEnabled(false);
textView.setOnClickListener(mFolder);
textView.setOnClickListener(ItemClickHandler.INSTANCE);
textView.setOnLongClickListener(mFolder);
textView.setOnFocusChangeListener(mFocusIndicatorHelper);
textView.setOnKeyListener(mKeyListener);