Make home send tap commands to live wallpaper.
(This only applies to taps on empty spaces)
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java
index 63e01bb..6dd18d3 100644
--- a/src/com/android/launcher2/CellLayout.java
+++ b/src/com/android/launcher2/CellLayout.java
@@ -58,6 +58,8 @@
private RectF mDragRect = new RectF();
private boolean mDirtyTag;
+
+ private boolean mLastDownOnOccupiedCell = false;
public CellLayout(Context context) {
this(context, null);
@@ -176,6 +178,8 @@
}
}
}
+
+ mLastDownOnOccupiedCell = found;
if (!found) {
int cellXY[] = mCellXY;
@@ -1039,6 +1043,10 @@
", y=" + cellY + "]";
}
}
+
+ public boolean lastDownOnOccupiedCell() {
+ return mLastDownOnOccupiedCell;
+ }
}