Fix SAF mime-type
This commit is contained in:
@@ -54,7 +54,7 @@ public class FileUtils {
|
|||||||
DocumentFile folder = parseFile(path);
|
DocumentFile folder = parseFile(path);
|
||||||
if (folder.findFile(name) != null)
|
if (folder.findFile(name) != null)
|
||||||
return true;
|
return true;
|
||||||
return folder.createFile("application/octet-stream", name) != null;
|
return folder.createFile("", name) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static InputStream getInputStream(String path) throws FileNotFoundException {
|
public static InputStream getInputStream(String path) throws FileNotFoundException {
|
||||||
|
|||||||
Reference in New Issue
Block a user