diff options
author | Christian S. <kriztan@users.noreply.github.com> | 2015-10-06 10:36:49 +0200 |
---|---|---|
committer | Christian S. <kriztan@users.noreply.github.com> | 2015-10-06 10:36:49 +0200 |
commit | 4cfdddaa76f3d6b789e0f7eec70fcfedf4e24b35 (patch) | |
tree | 64dbd25679d44f6db392abb8a5cf8acdaa60b13f /src/main/java/eu/siacs | |
parent | 6da1ada1ffa586267a56ddc995371fb6e4b45719 (diff) |
Added more info to alertbox
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java b/src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java index 4f43a70b8..4c8b524f7 100644 --- a/src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java @@ -158,6 +158,7 @@ public class UpdaterActivity extends Activity { //get the latest version from the JSON string int latestVersionCode = responseObj.getInt("latestVersionCode"); String latestVersion = responseObj.getString("latestVersion"); + String changelog = responseObj.getString("changelog"); /* //display the new version in a TextView TextView versionText = (TextView) findViewById(R.id.versionName); @@ -174,7 +175,8 @@ public class UpdaterActivity extends Activity { AlertDialog.Builder builder = new AlertDialog.Builder(UpdaterActivity.this); builder.setCancelable(false); - builder.setMessage(R.string.update_available) + String UpdateMessageInfo = getResources().getString(R.string.update_available); + builder.setMessage(String.format(UpdateMessageInfo, changelog, latestVersion, version) .setPositiveButton(R.string.update, new DialogInterface.OnClickListener() { //if the user agrees to upgrade public void onClick(DialogInterface dialog, int id) { |