瀏覽代碼

fix(lint android): Add TargetAPI to onPermissionRequest (#940)

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

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

@@ -837,6 +837,7 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
837 837
     }
838 838
 
839 839
     // Fix WebRTC permission request error.
840
+    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
840 841
     @Override
841 842
     public void onPermissionRequest(final PermissionRequest request) {
842 843
       String[] requestedResources = request.getResources();