private boolean isPdfFileFromContentProviderWithoutExtension(String localPath,String mimeType){
  return localPath.startsWith(UriUtils.URI_CONTENT_SCHEME) && mimeType.equals(MIME_TYPE_PDF) && !localPath.endsWith(FILE_EXTENSION_PDF);
}

private boolean isPdfFileFromContentProviderWithoutExtension ( String localPath , String mimeType ) { return localPath . startsWith ( UriUtils . URI_CONTENT_SCHEME ) && mimeType . equals ( MIME_TYPE_PDF ) && ! localPath . endsWith ( FILE_EXTENSION_PDF ) ; }
checks if content provider , using the content : / / scheme , returns a file with mime - type ' application / pdf ' but file has not extension
