You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble implementing calls to notifyItemRemoved/notifyItemMoved from within my subadapter methods, because these methods would appear to take the outer mergeAdapter position, while the adapter would have its local position.
There is a method getMergePositionForLocalPosition on RecyclerViewMergeAdapter which looks like it would be helpful, but it is currently a private method.
Would it make sense for the subAdapter class to override the notify methods and perform the subadapterPosition->mergePosition before delegating upwards, or perhaps new methods notifySubItemRemoved,etc.?
The text was updated successfully, but these errors were encountered:
I am having trouble implementing calls to notifyItemRemoved/notifyItemMoved from within my subadapter methods, because these methods would appear to take the outer mergeAdapter position, while the adapter would have its local position.
There is a method getMergePositionForLocalPosition on RecyclerViewMergeAdapter which looks like it would be helpful, but it is currently a private method.
Would it make sense for the subAdapter class to override the notify methods and perform the subadapterPosition->mergePosition before delegating upwards, or perhaps new methods notifySubItemRemoved,etc.?
The text was updated successfully, but these errors were encountered: