diff --git a/doric-android/doric/src/main/java/pub/doric/plugin/ShaderPlugin.java b/doric-android/doric/src/main/java/pub/doric/plugin/ShaderPlugin.java index 5580b387..fc1c377b 100644 --- a/doric-android/doric/src/main/java/pub/doric/plugin/ShaderPlugin.java +++ b/doric-android/doric/src/main/java/pub/doric/plugin/ShaderPlugin.java @@ -92,7 +92,12 @@ public class ShaderPlugin extends DoricJavaPlugin { @Override public void onFinish() { - promise.resolve(); + getDoricContext().getRootNode().getNodeView().post(new Runnable() { + @Override + public void run() { + promise.resolve(); + } + }); } }); }