Moving click and long click handling for items from launcher to separate class
Change-Id: I1d12862205f7fa7f3671ff351e66dba58bb430e2
This commit is contained in:
1 parent
584f530721
commit
8a2a63b3f0
13 files changed
+395
-306
No files matched your search
@@ -32,6 +32,7 @@ import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.dragndrop.DragOptions;
|
||||
import com.android.launcher3.graphics.ColorScrim;
|
||||
import com.android.launcher3.touch.ItemLongClickListener;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogProto.ContainerType;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogProto.Target;
|
||||
import com.android.launcher3.util.SystemUiController;
|
||||
@@ -71,7 +72,7 @@ abstract class BaseWidgetSheet extends AbstractSlideInView
|
||||
|
||||
@Override
|
||||
public final boolean onLongClick(View v) {
|
||||
if (!mLauncher.isDraggingEnabled()) return false;
|
||||
if (!ItemLongClickListener.canStartDrag(mLauncher)) return false;
|
||||
|
||||
if (v instanceof WidgetCell) {
|
||||
return beginDraggingWidget((WidgetCell) v);
|
||||
|
||||
Reference in new issue
Block a user