mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
- Fix compile after the previous revert.
This commit is contained in:
@@ -46,14 +46,11 @@ public class AssetsDownloader {
|
||||
}
|
||||
if (SOptionPane.showConfirmDialog(message, "New Version Available", "Update Now", "Update Later")) {
|
||||
String filename = "forge-android-" + version + "-signed-aligned.apk";
|
||||
|
||||
GuiDownloadZipService downloadService = new GuiDownloadZipService("", "update",
|
||||
String apkFile = new GuiDownloadZipService("", "update",
|
||||
"https://releases.cardforge.org/forge/forge-gui-android/" + version + "/" + filename,
|
||||
Forge.getDeviceAdapter().getDownloadsDir(), null, splashScreen.getProgressBar());
|
||||
|
||||
File apkFile = downloadService.download(filename);
|
||||
Forge.getDeviceAdapter().getDownloadsDir(), null, splashScreen.getProgressBar()).download(filename);
|
||||
if (apkFile != null) {
|
||||
Forge.getDeviceAdapter().openFile(apkFile.getPath());
|
||||
Forge.getDeviceAdapter().openFile(apkFile);
|
||||
Forge.exit(true);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user