Don't do the haptic feedback on workspace items when they're not being picked up.
related to bug 2309687
This commit is contained in:
parent
59d5245b0f
commit
f0dde0927b
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue