From 08f3da0706b2e0df96bdbb23d9723a9be5146143 Mon Sep 17 00:00:00 2001 From: huaxuan <646903573@qq.com> Date: Sat, 15 Oct 2022 15:34:12 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E4=BA=AC=E4=B8=9C=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96SDK=E6=97=B6=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/src/main/java/com/jd/jdsdk/JdsdkPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/jd/jdsdk/JdsdkPlugin.java b/android/src/main/java/com/jd/jdsdk/JdsdkPlugin.java index b922d0a..3ef762f 100644 --- a/android/src/main/java/com/jd/jdsdk/JdsdkPlugin.java +++ b/android/src/main/java/com/jd/jdsdk/JdsdkPlugin.java @@ -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); }