Explorar el Código

1.优化京东初始化SDK时报错的问题

tags/0.1.2
huaxuan hace 2 años
padre
commit
08f3da0706
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      android/src/main/java/com/jd/jdsdk/JdsdkPlugin.java

+ 2
- 1
android/src/main/java/com/jd/jdsdk/JdsdkPlugin.java Ver fichero

@@ -17,7 +17,7 @@ import io.flutter.plugin.common.PluginRegistry.Registrar;
public class JdsdkPlugin implements FlutterPlugin, MethodCallHandler, ActivityAware {
public static JDHelper mJDHelper;
private MethodChannel channel;
private ActivityPluginBinding binding;
@Override
public void onAttachedToEngine(FlutterPluginBinding flutterPluginBinding) {
// mJDHelper = JDHelper.getInstance(flutterPluginBinding.getApplicationContext());
@@ -56,6 +56,7 @@ public class JdsdkPlugin implements FlutterPlugin, MethodCallHandler, ActivityAw
@Override
public void onAttachedToActivity(ActivityPluginBinding binding) {
Log.d("flutter-taoke", "onAttachedToActivity" + binding);
this.binding=binding;
mJDHelper = JDHelper.getInstance(binding);
}



Cargando…
Cancelar
Guardar