diff options
author | Christian S <christian@pix-art.de> | 2015-11-15 11:31:39 +0100 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2015-11-15 11:31:39 +0100 |
commit | 8ea1e782a42c7431a44c4c1a27417482d7cf57da (patch) | |
tree | caa5cf40203bfc96470a875e5803a96c847a830b /src/main/java/eu/siacs/conversations/ui | |
parent | 47214684cd3571621bad2fa5181bc77027730c43 (diff) |
added full changelog as button...
...in updater dialog
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java | 12 |
1 files changed, 11 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 4dccdfe5b..a1b3a3c6a 100644 --- a/src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/UpdaterActivity.java @@ -195,7 +195,7 @@ public class UpdaterActivity extends Activity { DownloadManager.Request request = new DownloadManager.Request(Download_Uri); request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI); request.setAllowedOverRoaming(false); - request.setTitle("Conversations Update"); + request.setTitle("Pix-Art Messenger Update"); request.setDestinationInExternalFilesDir(UpdaterActivity.this, Environment.DIRECTORY_DOWNLOADS, "Conversations" + versionName + ".apk"); downloadReference = downloadManager.enqueue(request); Toast.makeText(getApplicationContext(), @@ -203,6 +203,16 @@ public class UpdaterActivity extends Activity { Toast.LENGTH_LONG).show(); } }) + .setNeutralButton(R.string.changelog, new DialogInterface.OnClickListener() { + //open link to changelog + public void onClick(DialogInterface dialog, int id) { + Uri uri = Uri.parse("https://github.com/kriztan/Conversations/blob/development/CHANGELOG.md"); // missing 'http://' will cause crashed + Intent intent = new Intent(Intent.ACTION_VIEW, uri); + startActivity(intent); + //restart updater to show dialog again after coming back after opening changelog + recreate(); + } + }) .setNegativeButton(R.string.remind_later, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // User cancelled the dialog |