浏览代码

fix(Android): Redirected URLs now redirect correctly. (#991)

Co-authored-by: Jamon Holmgren <jamon@infinite.red>
Co-authored-by: Jason Safaiyeh <safaiyeh@protonmail.com>
hanlh1 4 年前
父节点
当前提交
acf1ad7560
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java

+ 1
- 1
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java 查看文件

@@ -748,7 +748,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
748 748
         new TopShouldStartLoadWithRequestEvent(
749 749
           view.getId(),
750 750
           createWebViewEvent(view, url)));
751
-      return true;
751
+      return super.shouldOverrideUrlLoading(view,url);
752 752
     }
753 753
 
754 754