Kaynağa Gözat

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

tags/0.1.2
huaxuan 2 yıl önce
ebeveyn
işleme
08f3da0706
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. +2
    -1
      android/src/main/java/com/jd/jdsdk/JdsdkPlugin.java

+ 2
- 1
android/src/main/java/com/jd/jdsdk/JdsdkPlugin.java Dosyayı Görüntüle

@@ -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);
}



Yükleniyor…
İptal
Kaydet