if (x >= child.getLeft() - params.leftMargin && x <= child.getRight() + params.rightMargin
&& y >= child.getTop() - params.topMargin && y <= child.getBottom() + params.bottomMargin) {
return child;
}
}
<BUG>if (count > 0) {
return getChildAt(count - 1);
}</BUG>
return null;
}

if (x >= child.getLeft() - params.leftMargin && x <= child.getRight() + params.rightMargin
&& y >= child.getTop() - params.topMargin && y <= child.getBottom() + params.bottomMargin) {
return child;
}
}
return null;
}
