fix: Android list reuse identifier get error
This commit is contained in:
parent
cd9f08fa97
commit
37f8898eac
@ -82,8 +82,8 @@ class ListAdapter extends RecyclerView.Adapter<ListAdapter.DoricViewHolder> {
|
||||
}
|
||||
JSValue value = getItemModel(position);
|
||||
if (value != null && value.isObject()) {
|
||||
if (value.asObject().getProperty("identifier").isString()) {
|
||||
return value.asObject().getProperty("identifier").asString().value().hashCode();
|
||||
if (value.asObject().getProperty("props").asObject().getProperty("identifier").isString()) {
|
||||
return value.asObject().getProperty("props").asObject().getProperty("identifier").asString().value().hashCode();
|
||||
}
|
||||
}
|
||||
return super.getItemViewType(position);
|
||||
|
Reference in New Issue
Block a user