Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ private boolean onTouchUpTap(final MotionEvent event) {
mPendingCheckForTap : mPendingCheckForLongPress);
}
mLayoutMode = LAYOUT_NORMAL;
if (!mDataChanged && motionPosition >= 0 && mAdapter.isEnabled(motionPosition)) {
if (!mDataChanged && motionPosition >= 0 && mAdapter.isEnabled(motionPosition + mFirstPosition)) {
mTouchMode = TOUCH_MODE_TAP;
layoutChildren();
child.setPressed(true);
Expand Down Expand Up @@ -1297,7 +1297,7 @@ private boolean moveTheChildren(int deltaY, int incrementalDeltaY) {
}
for (int i = 0; i < childCount; i++) {
final View child = getChildAt(i);
if (child.getBottom() >= top) {
if (child.getBottom() >= top || i + firstPosition + 2 >= footerViewsStart) {
break;
}
else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,7 @@ private void onColumnSync() {
private void setPositionColumn(final int position, final int column) {
GridItemRecord rec = getOrCreateRecord(position);
rec.column = column;
rec.isHeaderFooter = false;
}

private void setPositionHeightRatio(final int position, final int height) {
Expand All @@ -1010,6 +1011,7 @@ private void setPositionHeightRatio(final int position, final int height) {
private void setPositionIsHeaderFooter(final int position) {
GridItemRecord rec = getOrCreateRecord(position);
rec.isHeaderFooter = true;
rec.column = -1;
}

private GridItemRecord getOrCreateRecord(final int position) {
Expand Down