mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-04 21:27:41 +08:00
fix ViewInfoStore::removeViewHolder
This commit is contained in:
parent
a605bbcbbb
commit
5a6d1dda0c
@ -171,9 +171,11 @@ void ViewInfoStore::removeViewHolder(RecyclerView::ViewHolder* holder) {
|
||||
}
|
||||
InfoRecord* info = nullptr;//mLayoutHolderMap.remove(holder);
|
||||
auto it = mLayoutHolderMap.find(holder);
|
||||
if( it!= mLayoutHolderMap.end() )info = it->second;
|
||||
if (info != nullptr) {
|
||||
InfoRecord::recycle(info);
|
||||
if( it!= mLayoutHolderMap.end() ){
|
||||
info = it->second;
|
||||
if(info)
|
||||
InfoRecord::recycle(info);
|
||||
mLayoutHolderMap.erase(it);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user