Make home send tap commands to live wallpaper.

(This only applies to taps on empty spaces)
This commit is contained in:
Mike Cleron
2009-10-23 16:15:16 -07:00
parent a07724f705
commit f8bbd34d7d
2 changed files with 22 additions and 2 deletions

View File

@@ -58,6 +58,8 @@ public class CellLayout extends ViewGroup {
private RectF mDragRect = new RectF();
private boolean mDirtyTag;
private boolean mLastDownOnOccupiedCell = false;
public CellLayout(Context context) {
this(context, null);
@@ -176,6 +178,8 @@ public class CellLayout extends ViewGroup {
}
}
}
mLastDownOnOccupiedCell = found;
if (!found) {
int cellXY[] = mCellXY;
@@ -1039,6 +1043,10 @@ out: for (int i = x; i < x + spanX - 1 && x < xCount; i++) {
", y=" + cellY + "]";
}
}
public boolean lastDownOnOccupiedCell() {
return mLastDownOnOccupiedCell;
}
}