diff options
author | Tony Wickham <twickham@google.com> | 2021-03-22 17:19:41 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2021-03-23 11:42:50 -0700 |
commit | e63bd38a55e262ea98d2bbcea45ecef0fbd3e931 (patch) | |
tree | 3e86590d962546126cb0c72798c32cc65730c2cc /quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java | |
parent | 3629b93546623897d3d490825cdc87d3b5d75300 (diff) |
Remove dead taskbar code
Test: Works as before
Bug: 182512211
Change-Id: Id4c979f2924f9ae6881a9bed18bcc52fbd80c05b
Diffstat (limited to 'quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java')
-rw-r--r-- | quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java index f51e49837d..5eb34cb360 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarDragController.java @@ -33,7 +33,6 @@ import com.android.launcher3.BaseQuickstepLauncher; import com.android.launcher3.BubbleTextView; import com.android.launcher3.LauncherSettings; import com.android.launcher3.R; -import com.android.launcher3.model.data.ItemInfo; import com.android.launcher3.model.data.WorkspaceItemInfo; import com.android.systemui.shared.recents.model.Task; import com.android.systemui.shared.system.ClipDescriptionCompat; @@ -126,38 +125,6 @@ public class TaskbarDragController { } /** - * Starts a drag and drop operation that controls a real Workspace (Hotseat) view. - * @param view The Taskbar item that was long clicked. - * @return Whether {@link View#startDragAndDrop} started successfully. - */ - protected boolean startWorkspaceDragOnLongClick(View view) { - View.DragShadowBuilder transparentShadowBuilder = new View.DragShadowBuilder(view) { - private static final int ARBITRARY_SHADOW_SIZE = 10; - - @Override - public void onDrawShadow(Canvas canvas) { - } - - @Override - public void onProvideShadowMetrics(Point outShadowSize, Point outShadowTouchPoint) { - outShadowSize.set(ARBITRARY_SHADOW_SIZE, ARBITRARY_SHADOW_SIZE); - outShadowTouchPoint.set(ARBITRARY_SHADOW_SIZE / 2, ARBITRARY_SHADOW_SIZE / 2); - } - }; - - TaskbarDragListener taskbarDragListener = new TaskbarDragListener(mLauncher, - (ItemInfo) view.getTag()); - if (view.startDragAndDrop(new ClipData("", new String[] {taskbarDragListener.getMimeType()}, - new ClipData.Item("")), - transparentShadowBuilder, null /* localState */, View.DRAG_FLAG_GLOBAL)) { - view.setOnDragListener(getDraggedViewDragListener()); - taskbarDragListener.init(mLauncher.getDragLayer()); - return true; - } - return false; - } - - /** * Hide the original Taskbar item while it is being dragged. */ private View.OnDragListener getDraggedViewDragListener() { |