瀏覽代碼

fix(Android): geolocation access (#562)

Adrian Rangel 6 年之前
父節點
當前提交
409b9ae620
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. 0
    1
      android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java

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

167
       new LayoutParams(LayoutParams.MATCH_PARENT,
167
       new LayoutParams(LayoutParams.MATCH_PARENT,
168
         LayoutParams.MATCH_PARENT));
168
         LayoutParams.MATCH_PARENT));
169
 
169
 
170
-    setGeolocationEnabled(webView, false);
171
     if (ReactBuildConfig.DEBUG && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
170
     if (ReactBuildConfig.DEBUG && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
172
       WebView.setWebContentsDebuggingEnabled(true);
171
       WebView.setWebContentsDebuggingEnabled(true);
173
     }
172
     }