Android:protect type error
This commit is contained in:
parent
2de59a307f
commit
a786977b80
@ -43,10 +43,15 @@ public abstract class GroupNode<F extends ViewGroup> extends SuperNode<F> {
|
|||||||
@Override
|
@Override
|
||||||
protected void blend(F view, String name, JSValue prop) {
|
protected void blend(F view, String name, JSValue prop) {
|
||||||
if ("children".equals(name)) {
|
if ("children".equals(name)) {
|
||||||
JSArray ids = prop.asArray();
|
|
||||||
mChildViewIds.clear();
|
mChildViewIds.clear();
|
||||||
|
if (prop.isArray()) {
|
||||||
|
JSArray ids = prop.asArray();
|
||||||
for (int i = 0; i < ids.size(); i++) {
|
for (int i = 0; i < ids.size(); i++) {
|
||||||
mChildViewIds.add(ids.get(i).asString().value());
|
JSValue value = ids.get(i);
|
||||||
|
if (value.isString()) {
|
||||||
|
mChildViewIds.add(value.asString().value());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
super.blend(view, name, prop);
|
super.blend(view, name, prop);
|
||||||
|
Reference in New Issue
Block a user