Commit 315e405d authored by yangwu.jia's avatar yangwu.jia

修改默认renderMode

parent 675bbce4
...@@ -9,6 +9,7 @@ import com.idlefish.flutterboost.*; ...@@ -9,6 +9,7 @@ import com.idlefish.flutterboost.*;
import java.util.Map; import java.util.Map;
import com.idlefish.flutterboost.interfaces.INativeRouter; import com.idlefish.flutterboost.interfaces.INativeRouter;
import io.flutter.embedding.android.FlutterView;
import io.flutter.plugin.common.MethodChannel; import io.flutter.plugin.common.MethodChannel;
public class MyApplication extends Application { public class MyApplication extends Application {
...@@ -49,6 +50,7 @@ public class MyApplication extends Application { ...@@ -49,6 +50,7 @@ public class MyApplication extends Application {
.ConfigBuilder(this,router) .ConfigBuilder(this,router)
.isDebug(true) .isDebug(true)
.whenEngineStart(NewFlutterBoost.ConfigBuilder.ANY_ACTIVITY_CREATED) .whenEngineStart(NewFlutterBoost.ConfigBuilder.ANY_ACTIVITY_CREATED)
.renderMode(FlutterView.RenderMode.texture)
.lifecycleListener(lifecycleListener) .lifecycleListener(lifecycleListener)
.build(); .build();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment