Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51b2384

Browse files
committed
Looking at AOSP ListView.java and add some missing call to invokeOnItemScrollListener
1 parent 84a06f8 commit 51b2384

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/src/main/java/com/etsy/android/grid/ExtendableListView.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ protected void layoutChildren() {
528528

529529
if (mAdapter == null) {
530530
clearState();
531+
invokeOnItemScrollListener();
531532
return;
532533
}
533534

@@ -551,6 +552,7 @@ protected void layoutChildren() {
551552
// and calling it a day
552553
if (mItemCount == 0) {
553554
clearState();
555+
invokeOnItemScrollListener();
554556
return;
555557
}
556558
else if (mItemCount != mAdapter.getCount()) {
@@ -613,6 +615,7 @@ else if (mFirstPosition < mItemCount) {
613615
mDataChanged = false;
614616
mNeedSync = false;
615617
mLayoutMode = LAYOUT_NORMAL;
618+
invokeOnItemScrollListener();
616619
} finally {
617620
mBlockLayoutRequests = false;
618621
}

0 commit comments

Comments
 (0)