From c60ba612f5a3e4dddc6a73736623f7c8748338c8 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Tue, 12 Oct 2021 17:08:37 +0800 Subject: [PATCH] android: fix flowlayout read item's identifier error --- .../main/java/pub/doric/shader/flowlayout/FlowAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doric-android/doric/src/main/java/pub/doric/shader/flowlayout/FlowAdapter.java b/doric-android/doric/src/main/java/pub/doric/shader/flowlayout/FlowAdapter.java index cbe3d7c4..6e4261ff 100644 --- a/doric-android/doric/src/main/java/pub/doric/shader/flowlayout/FlowAdapter.java +++ b/doric-android/doric/src/main/java/pub/doric/shader/flowlayout/FlowAdapter.java @@ -102,8 +102,8 @@ class FlowAdapter extends RecyclerView.Adapter { } 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);