Merge pull request #259 from macdonst/issue257

Fix for Issue #257: File Transfer with file:/// URIs
This commit is contained in:
macdonst 2011-10-04 08:57:37 -07:00
commit ea87dfe08a

View File

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