trim file:// URI from uri->path conversion method

This commit is contained in:
Fil Maj 2012-02-17 10:55:04 -08:00 committed by Joe Bowser
parent 9fe1f21c9f
commit 770a257ed3

View File

@ -1025,6 +1025,9 @@ public class FileUtils extends Plugin {
return ctx.getContentResolver().openInputStream(uri);
}
else {
if (path.startsWith("file://")) {
path = path.substring(7);
}
return new FileInputStream(path);
}
}