Fix issue where you could page to -1 during spring loaded drag (issue 10640529)

Change-Id: I487c871af4ec4412ee4edc74ce58947e54ccd43b
This commit is contained in:
Adam Cohen
2013-09-22 12:32:22 -07:00
parent 89f9705077
commit df041bc7ad

View File

@@ -2951,6 +2951,11 @@ public class Workspace extends SmoothPagedView
float smallestDistSoFar = Float.MAX_VALUE;
for (int i = 0; i < screenCount; i++) {
// The custom content screen is not a valid drag over option
if (mScreenOrder.get(i) == CUSTOM_CONTENT_SCREEN_ID) {
continue;
}
CellLayout cl = (CellLayout) getChildAt(i);
final float[] touchXy = {originX, originY};