mirror of
https://github.com/alibaba/vlayout.git
synced 2026-10-17 05:07:37 +08:00
fix unstick callback view is null
This commit is contained in:
@@ -292,7 +292,6 @@ public class StickyLayoutHelper extends FixAreaLayoutHelper {
|
||||
}
|
||||
}
|
||||
|
||||
View stickyView = mFixView;
|
||||
// Not in normal flow
|
||||
if (!mDoNormalHandle && mFixView != null) {
|
||||
// already capture in layoutViews phase
|
||||
@@ -308,7 +307,7 @@ public class StickyLayoutHelper extends FixAreaLayoutHelper {
|
||||
|
||||
if (stickyListener != null) {
|
||||
if (isLastStatusSticking && !isStickyNow()) {
|
||||
stickyListener.onUnSticky(mPos, stickyView);
|
||||
stickyListener.onUnSticky(mPos, mFixView);
|
||||
isLastStatusSticking = false;
|
||||
} else if (!isLastStatusSticking && isStickyNow()) {
|
||||
stickyListener.onSticky(mPos, mFixView);
|
||||
@@ -699,7 +698,7 @@ public class StickyLayoutHelper extends FixAreaLayoutHelper {
|
||||
if (mFixView.getParent() == null) {
|
||||
helper.addChildView(mFixView, index);
|
||||
}
|
||||
mFixView = null;
|
||||
// mFixView = null;
|
||||
}
|
||||
} else {
|
||||
helper.addFixedView(mFixView);
|
||||
|
||||
Reference in New Issue
Block a user