format message

This commit is contained in:
Anthony Calosa
2024-10-28 12:19:50 +08:00
parent 20db37477f
commit 0bac8ea04d

View File

@@ -97,8 +97,8 @@ public class AssetsDownloader {
if (verifyUpdatable) {
Forge.getSplashScreen().prepareForDialogs();
message = "A new version of Forge is available. " + version + "\n" + snapsBuildDate + "\n" +
"You are currently on an older version. " + versionString + "\n" + buildDate + "\n" +
message = "A new version of Forge is available. - v." + version + "\n" + snapsBuildDate + "\n" +
"You are currently on an older version. - v." + versionString + "\n" + buildDate + "\n" +
"Would you like to update to the new version now?";
if (!Forge.getDeviceAdapter().isConnectedToWifi()) {
message += " If so, you may want to connect to wifi first. The download is around " + (GuiBase.isAndroid() ? apkSize : packageSize) + ".";
@@ -196,7 +196,7 @@ public class AssetsDownloader {
return;
}
mandatory = true;
build += "Installed resources date: " + target + "\n\n";
build += "\nInstalled resources date:\n" + target + "\n";
log = Forge.getDeviceAdapter().getLatestChanges(GITHUB_COMMITS_URL_ATOM, buildDate, snapsTimestamp);
} catch (Exception e) {
e.printStackTrace();