react-native-call-detection/android/src/main/java/com/pritesh/calldetection/CallDetectionManagerModule.java
@Override
    public boolean onRequestPermissionsResult( int requestCode, String[] permissions, int[] grantResults ) {

        mCallbacks.get(requestCode).invoke(grantResults, getPermissionAwareActivity());
        mCallbacks.remove(requestCode);
        return mCallbacks.size() == 0;
    }
/**
    * Method called by the activity with the result of the permission request.
    */
Method called by the activity with the result of the permission request.
Method called by the activity with the result of the permission request .
@Override
    public boolean onRequestPermissionsResult( int requestCode, String[] permissions, int[] grantResults ) {
        mCallbacks.get(requestCode).invoke(grantResults, getPermissionAwareActivity());
        mCallbacks.remove(requestCode);
        return mCallbacks.size() == 0;
    }
@ Override public boolean onRequestPermissionsResult ( int requestCode , String [ ] permissions , int [ ] grantResults ) { mCallbacks . get ( requestCode ) . invoke ( grantResults , getPermissionAwareActivity ( ) ) ; mCallbacks . remove ( requestCode ) ; return mCallbacks . size ( ) == 0 ; }
Method called by the activity with the result of the permission request.
Method called by the activity with the result of the permission request .