From ba413f84090cd58b8b769ca43ff3ef65a0e53274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=8D=8E=E8=BD=A9?= <646903573@qq.com> Date: Thu, 5 Nov 2020 16:41:31 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E9=98=BF=E9=87=8C=E7=99=BE?= =?UTF-8?q?=E5=B7=9D=E6=8B=89=E8=B5=B7=E6=B8=A0=E9=81=93=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E7=9A=84=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java b/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java index e7ca838..a6ee0a8 100644 --- a/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java +++ b/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java @@ -194,7 +194,7 @@ public class FlutterAlibcHandle { @Override public void onSuccess(int i, String s, String s1) { Log.d("阿里百川打开WebView", "webview"); - Intent intent = new Intent(register.activity(), WebActivity.class); + Intent intent = new Intent(register.context(), WebActivity.class); intent.putExtra("url", (String) call.argument("url")); register.activity().startActivity(intent); } @@ -206,7 +206,7 @@ public class FlutterAlibcHandle { }); } else { Log.d("阿里百川打开WebView", "webview"); - Intent intent = new Intent(register.activity(), WebActivity.class); + Intent intent = new Intent(register.context(), WebActivity.class); intent.putExtra("url", (String) call.argument("url")); register.activity().startActivity(intent); }