Fix resolving of paths in the new version of Cordova.

This commit is contained in:
Jos van den Oever
2012-06-12 22:50:03 +02:00
parent a8966639c4
commit 9a1c1c3569
3 changed files with 3 additions and 3 deletions
@@ -22,7 +22,7 @@ public class ZipReader {
private InputStream openZipEntry(String url, String filename)
throws IOException, NullPointerException {
if (zip == null || this.url != url) {
zip = new ZipFile(new File(url), ZipFile.OPEN_READ);
zip = new ZipFile(new File(url.substring(7)), ZipFile.OPEN_READ);
this.url = url;
}
return zip.getInputStream(zip.getEntry(filename));