diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index eca5d12d19..431a149b95 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -1471,9 +1471,6 @@ public class Workspace extends PagedView public DragView beginDragShared(View child, DragSource source, ItemInfo dragObject, DragPreviewProvider previewProvider, DragOptions dragOptions) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.NO_CONTEXT_MENU, "beginDragShared"); - } float iconScale = 1f; if (child instanceof BubbleTextView) { Drawable icon = ((BubbleTextView) child).getIcon(); diff --git a/src/com/android/launcher3/popup/PopupContainerWithArrow.java b/src/com/android/launcher3/popup/PopupContainerWithArrow.java index 203492677d..835782a3e5 100644 --- a/src/com/android/launcher3/popup/PopupContainerWithArrow.java +++ b/src/com/android/launcher3/popup/PopupContainerWithArrow.java @@ -197,9 +197,6 @@ public class PopupContainerWithArrow extends ArrowPopup implements DragSource, * @return the container if shown or null. */ public static PopupContainerWithArrow showForIcon(BubbleTextView icon) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.NO_CONTEXT_MENU, "showForIcon"); - } Launcher launcher = Launcher.getLauncher(icon.getContext()); if (getOpen(launcher) != null) { // There is already an items container open, so don't open this one. @@ -240,9 +237,6 @@ public class PopupContainerWithArrow extends ArrowPopup implements DragSource, } protected void populateAndShow(BubbleTextView icon, ItemInfo item) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.NO_CONTEXT_MENU, "populateAndShow"); - } PopupDataProvider popupDataProvider = mLauncher.getPopupDataProvider(); populateAndShow(icon, popupDataProvider.getShortcutCountForItem(item), diff --git a/src/com/android/launcher3/testing/TestProtocol.java b/src/com/android/launcher3/testing/TestProtocol.java index 1766814f0f..d686e95ac3 100644 --- a/src/com/android/launcher3/testing/TestProtocol.java +++ b/src/com/android/launcher3/testing/TestProtocol.java @@ -84,6 +84,5 @@ public final class TestProtocol { public static final String NO_BACKGROUND_TO_OVERVIEW_TAG = "b/138251824"; public static final String NO_DRAG_TO_WORKSPACE = "b/138729456"; public static final String APP_NOT_DISABLED = "b/139891609"; - public static final String NO_CONTEXT_MENU = "b/141770616"; public static final String CRASH_ADD_CUSTOM_SHORTCUT = "b/141568904"; } diff --git a/src/com/android/launcher3/touch/ItemLongClickListener.java b/src/com/android/launcher3/touch/ItemLongClickListener.java index 86d2b39012..aa02d0aad3 100644 --- a/src/com/android/launcher3/touch/ItemLongClickListener.java +++ b/src/com/android/launcher3/touch/ItemLongClickListener.java @@ -79,19 +79,10 @@ public class ItemLongClickListener { } private static boolean onAllAppsItemLongClick(View v) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.NO_CONTEXT_MENU, "onAllAppsItemLongClick1"); - } Launcher launcher = Launcher.getLauncher(v.getContext()); if (!canStartDrag(launcher)) return false; - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.NO_CONTEXT_MENU, "onAllAppsItemLongClick2"); - } // When we have exited all apps or are in transition, disregard long clicks if (!launcher.isInState(ALL_APPS) && !launcher.isInState(OVERVIEW)) return false; - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.NO_CONTEXT_MENU, "onAllAppsItemLongClick3"); - } if (launcher.getWorkspace().isSwitchingState()) return false; // Start the drag