Removing view.isInTouchMode() because plaform returns false when

using a mouse on long click.

Bug: 38204847

Change-Id: I5b10e8251f4f0a7b148c0404d5939a0fa8325a46
This commit is contained in:
Mario Bertschler committed 2017-06-22 09:29:46 -07:00
1 parent bef710114c
commit cd04c89f89
5 files changed
+2 -15

No files matched your search

@@ -299,10 +299,7 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
@Override
public boolean onLongClick(final View v) {
// Return early if this is not initiated from a touch
if (!v.isInTouchMode()) return false;
// When we have exited all apps or are in transition, disregard long clicks
if (!mLauncher.isAppsViewVisible() ||
mLauncher.getWorkspace().isSwitchingState()) return false;
// Return if global dragging is not enabled or we are already dragging