Android:render's promise's resolve should happen after view's been measured and layouted

This commit is contained in:
pengfei.zhou 2020-04-09 14:11:42 +08:00 committed by osborn
parent ab11ee3372
commit d1f32b7f5c

View File

@ -92,7 +92,12 @@ public class ShaderPlugin extends DoricJavaPlugin {
@Override @Override
public void onFinish() { public void onFinish() {
promise.resolve(); getDoricContext().getRootNode().getNodeView().post(new Runnable() {
@Override
public void run() {
promise.resolve();
}
});
} }
}); });
} }