Skip to content

Commit 9b80684

Browse files
committed
1.Receive advice CymChad#2054
1 parent fbbd675 commit 9b80684

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

library/src/main/java/com/chad/library/adapter/base/BaseQuickAdapter.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,14 @@ public void setDuration(int duration) {
444444
mDuration = duration;
445445
}
446446

447-
447+
/**
448+
* If you have added headeview, the notification view refreshes.
449+
* Do not need to care about the number of headview, only need to pass in the position of the final view
450+
* @param position
451+
*/
452+
public final void refreshNotifyItemChanged(int position) {
453+
notifyItemChanged(position + getHeaderLayoutCount());
454+
}
448455
/**
449456
* Same as QuickAdapter#QuickAdapter(Context,int) but with
450457
* some initialization data.

0 commit comments

Comments
 (0)