woxblom / DragListView

Drag and drop to reorder items in a list, grid or board for Android. Based on RecyclerView. Also supports swiping items in a list.
Apache License 2.0
693 stars 177 forks source link

Incorrect addition of column header and footer when adding a column by index #214

Open Kachiro0121 opened 1 month ago

Kachiro0121 commented 1 month ago

Incorrect Addition of Column Header and Footer in addColumnTo(int index, @NonNull ColumnProperties columnProperties) Method in BoardView Class (Line 946):

The header and footer are incorrectly added to the mHeaders and mFooters lists because mHeaders.add(columnHeader) (Line 1049) and mFooters.add(columnFooter) (Line 1060) do not use the specified index. This results in incorrect retrieval of the header or footer by column index.

image
woxblom commented 1 month ago

Ok, please make a pull request with the change

Kachiro0121 commented 1 month ago

https://github.com/woxblom/DragListView/pull/215

Kachiro0121 commented 1 month ago

Thanks for the quick response