diff --git a/res/layout-land/workspace_screen.xml b/res/layout-land/workspace_screen.xml index 2483f51593..a58ea07538 100644 --- a/res/layout-land/workspace_screen.xml +++ b/res/layout-land/workspace_screen.xml @@ -20,6 +20,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" + android:hapticFeedbackEnabled="false" launcher:cellWidth="@dimen/workspace_cell_width" launcher:cellHeight="@dimen/workspace_cell_height" diff --git a/res/layout-port/workspace_screen.xml b/res/layout-port/workspace_screen.xml index b43375b148..4929c2f713 100644 --- a/res/layout-port/workspace_screen.xml +++ b/res/layout-port/workspace_screen.xml @@ -20,6 +20,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" + android:hapticFeedbackEnabled="false" launcher:cellWidth="@dimen/workspace_cell_width" launcher:cellHeight="@dimen/workspace_cell_height" diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 089e5512bb..ee92fc7250 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -558,6 +558,7 @@ public final class Launcher extends Activity mWorkspace = (Workspace) dragLayer.findViewById(R.id.workspace); final Workspace workspace = mWorkspace; + workspace.setHapticFeedbackEnabled(false); DeleteZone deleteZone = (DeleteZone) dragLayer.findViewById(R.id.delete_zone); mDeleteZone = deleteZone; @@ -1385,6 +1386,8 @@ public final class Launcher extends Activity if (cellInfo.valid) { // User long pressed on empty space mWorkspace.setAllowLongPress(false); + mWorkspace.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS, + HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING); showAddDialog(cellInfo); } } else {