Merge "Disable multitouch to prevent crash in all apps and frozen workspace while dragging." into honeycomb
This commit is contained in:
@@ -45,6 +45,9 @@ public class CellLayoutChildren extends ViewGroup {
|
|||||||
super(context);
|
super(context);
|
||||||
mWallpaperManager = WallpaperManager.getInstance(context);
|
mWallpaperManager = WallpaperManager.getInstance(context);
|
||||||
setLayerType(LAYER_TYPE_HARDWARE, null);
|
setLayerType(LAYER_TYPE_HARDWARE, null);
|
||||||
|
|
||||||
|
// Disable multitouch for the workspace
|
||||||
|
setMotionEventSplittingEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCellDimensions(int cellWidth, int cellHeight,
|
public void setCellDimensions(int cellWidth, int cellHeight,
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ public class DragLayer extends FrameLayout {
|
|||||||
*/
|
*/
|
||||||
public DragLayer(Context context, AttributeSet attrs) {
|
public DragLayer(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
|
|
||||||
|
// Disable multitouch across the workspace/all apps/customize tray
|
||||||
|
setMotionEventSplittingEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDragController(DragController controller) {
|
public void setDragController(DragController controller) {
|
||||||
|
|||||||
Reference in New Issue
Block a user