Merge "Disable multitouch to prevent crash in all apps and frozen workspace while dragging." into honeycomb

This commit is contained in:
Winson Chung
2011-02-03 23:39:56 -08:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 0 deletions
@@ -45,6 +45,9 @@ public class CellLayoutChildren extends ViewGroup {
super(context);
mWallpaperManager = WallpaperManager.getInstance(context);
setLayerType(LAYER_TYPE_HARDWARE, null);
// Disable multitouch for the workspace
setMotionEventSplittingEnabled(false);
}
public void setCellDimensions(int cellWidth, int cellHeight,
+3
View File
@@ -40,6 +40,9 @@ public class DragLayer extends FrameLayout {
*/
public DragLayer(Context context, AttributeSet attrs) {
super(context, attrs);
// Disable multitouch across the workspace/all apps/customize tray
setMotionEventSplittingEnabled(false);
}
public void setDragController(DragController controller) {