Pārlūkot izejas kodu

1.修复阿里百川拉起渠道授权的页面

tags/0.0.3
杨华轩 pirms 4 gadiem
vecāks
revīzija
ba413f8409
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java

+ 2
- 2
android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt