mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Update GuiDownloadZipService.java
This commit is contained in:
@@ -172,7 +172,13 @@ public class GuiDownloadZipService extends GuiDownloadService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final ZipFile zipFile = new ZipFile(zipFilename, Charset.forName("IBM437"));
|
final Charset charset = Charset.forName("IBM437");
|
||||||
|
ZipFile zipFile;
|
||||||
|
try {
|
||||||
|
zipFile = new ZipFile(zipFilename, charset);
|
||||||
|
} catch (Throwable e) { //some older Android versions need the old method
|
||||||
|
zipFile = new ZipFile(zipFilename);
|
||||||
|
}
|
||||||
final Enumeration<? extends ZipEntry> entries = zipFile.entries();
|
final Enumeration<? extends ZipEntry> entries = zipFile.entries();
|
||||||
|
|
||||||
progressBar.reset();
|
progressBar.reset();
|
||||||
|
|||||||
Reference in New Issue
Block a user