Browse Source

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

Tom Targosz 5 years ago
parent
commit
0b783da0a4

+ 1
- 0
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java View File

837
     }
837
     }
838
 
838
 
839
     // Fix WebRTC permission request error.
839
     // Fix WebRTC permission request error.
840
+    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
840
     @Override
841
     @Override
841
     public void onPermissionRequest(final PermissionRequest request) {
842
     public void onPermissionRequest(final PermissionRequest request) {
842
       String[] requestedResources = request.getResources();
843
       String[] requestedResources = request.getResources();