Make home send tap commands to live wallpaper.
(This only applies to taps on empty spaces)
This commit is contained in:
1 parent
a07724f705
commit
f8bbd34d7d
2 files changed
+22
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user