mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-04 21:27:41 +08:00
fix ViewInfoStore::addToPreLayout
This commit is contained in:
parent
0fad6ff838
commit
0127b27c59
@ -12,7 +12,7 @@ void ViewInfoStore::clear() {
|
||||
void ViewInfoStore::addToPreLayout(RecyclerView::ViewHolder* holder, RecyclerView::ItemAnimator::ItemHolderInfo* info) {
|
||||
InfoRecord* record = nullptr;//mLayoutHolderMap.get(holder);
|
||||
auto it = mLayoutHolderMap.find(holder);
|
||||
if(it ==mLayoutHolderMap.end())record = it->second;
|
||||
if(it !=mLayoutHolderMap.end())record = it->second;
|
||||
if (record == nullptr) {
|
||||
record = InfoRecord::obtain();
|
||||
mLayoutHolderMap.insert({holder,record});//put(holder, record);
|
||||
|
Loading…
Reference in New Issue
Block a user