Skip to content

Commit 00bb378

Browse files
committed
完善插件提示
1 parent 9737d53 commit 00bb378

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

android/src/main/java/com/sensorsdata/analytics/sensorsanalyticsflutterplugin/SensorsAnalyticsFlutterPlugin.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,12 @@ private void getSuperProperties(Result result) {
219219
if (value instanceof JSONArray) {
220220
JSONArray jsonArray = (JSONArray) value;
221221
if (jsonArray.length() != 0) {
222-
value = new ArrayList();
222+
ArrayList<Object> newValue = new ArrayList<>();
223223
for (int index = 0; index < jsonArray.length(); index++) {
224-
((ArrayList) value).add(jsonArray.opt(index));
224+
newValue.add(jsonArray.opt(index));
225225
}
226+
map.put(key, newValue);
227+
continue;
226228
}
227229
}
228230
map.put(key, value);

0 commit comments

Comments
 (0)