mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +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")) {
|
if (SOptionPane.showConfirmDialog(message, "New Version Available", "Update Now", "Update Later")) {
|
||||||
String filename = "forge-android-" + version + "-signed-aligned.apk";
|
String filename = "forge-android-" + version + "-signed-aligned.apk";
|
||||||
|
String apkFile = new GuiDownloadZipService("", "update",
|
||||||
GuiDownloadZipService downloadService = new GuiDownloadZipService("", "update",
|
|
||||||
"https://releases.cardforge.org/forge/forge-gui-android/" + version + "/" + filename,
|
"https://releases.cardforge.org/forge/forge-gui-android/" + version + "/" + filename,
|
||||||
Forge.getDeviceAdapter().getDownloadsDir(), null, splashScreen.getProgressBar());
|
Forge.getDeviceAdapter().getDownloadsDir(), null, splashScreen.getProgressBar()).download(filename);
|
||||||
|
|
||||||
File apkFile = downloadService.download(filename);
|
|
||||||
if (apkFile != null) {
|
if (apkFile != null) {
|
||||||
Forge.getDeviceAdapter().openFile(apkFile.getPath());
|
Forge.getDeviceAdapter().openFile(apkFile);
|
||||||
Forge.exit(true);
|
Forge.exit(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user