return super.read();
}
public int read(byte[] b, int off, int len) throws IOException {
- bytesDownloaded += len;
+ int ret = super.read(b, off, len);
+ if (ret != -1) bytesDownloaded += ret;
Main.updateSplashScreen();
- return super.read(b, off, len);
+ return ret;
}
});
for(ZipEntry ze = zis.getNextEntry(); ze != null; ze = zis.getNextEntry()) {