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 fd483649..2afb6846 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 @@ -53,7 +53,7 @@ public class ShaderPlugin extends DoricJavaPlugin { super(doricContext); } - @DoricMethod + @DoricMethod(thread = ThreadMode.UI) public void render(final JSObject jsObject, final DoricPromise promise) { final DoricPerformanceProfile profile = getDoricContext().getPerformanceProfile(); profile.prepare(DoricPerformanceProfile.STEP_RENDER); @@ -120,7 +120,7 @@ public class ShaderPlugin extends DoricJavaPlugin { }); } - @DoricMethod + @DoricMethod(thread = ThreadMode.UI) public void command(final JSObject jsObject, final DoricPromise doricPromise) { getDoricContext().getDriver().asyncCall(new Callable() { @Override