opermission/src/main/java/co/omkar/utility/opermission/RequestPermission.java
private static boolean isPermissionRequired(PermBean permBean) {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
            return false;
        }
        if (permBean.size() > 0) {
            Map<Permission, String> map = permBean.getPermissions();
            for (Permission permission : map.keySet()) {
                int status = mActivity.checkSelfPermission(permission.toString());
                if (status != PackageManager.PERMISSION_GRANTED) return true;
            }
        }
        return false;
    }
private static boolean isPermissionRequired(PermBean permBean) {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
            return false;
        }
        if (permBean.size() > 0) {
            Map<Permission, String> map = permBean.getPermissions();
            for (Permission permission : map.keySet()) {
                int status = mActivity.checkSelfPermission(permission.toString());
                if (status != PackageManager.PERMISSION_GRANTED) return true;
            }
        }
        return false;
    }
private static boolean isPermissionRequired ( PermBean permBean ) { if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . M ) { return false ; } if ( permBean . size ( ) > 0 ) { Map < Permission , String > map = permBean . getPermissions ( ) ; for ( Permission permission : map . keySet ( ) ) { int status = mActivity . checkSelfPermission ( permission . toString ( ) ) ; if ( status != PackageManager . PERMISSION_GRANTED ) return true ; } } return false ; }
<p>Check weather single or multiple permissions requires grant.</p>
Use instead {@link RequestPermission#request()} directly.

@param permBean {@link PermBean} wrapper class.
@return boolean value if any one of permission requires to be asked.
<p > Check weather single or multiple permissions requires grant . < / p > Use instead { @link RequestPermission#request () } directly .