diff options
author | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-02-16 22:10:06 +0100 |
---|---|---|
committer | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-02-16 22:10:06 +0100 |
commit | 435989fc60c1f94c8a2d3175b8f77cc2ddd3a2f3 (patch) | |
tree | a391c0c76eb4482c8ca438a4807ebbaa2a96b603 /src/main/java/de/pixart/messenger/ui/UpdaterActivity.java | |
parent | 15d25f36583710afaf5770ce48a03ebdad8050b0 (diff) |
use androidx.appcompat.app.AlertDialog and make AlertDialog final
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/UpdaterActivity.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/UpdaterActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java index fdd9b95d3..6cc3571b5 100644 --- a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java +++ b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java @@ -119,7 +119,7 @@ public class UpdaterActivity extends XmppActivity { } //oh yeah we do need an upgrade, let the user know send an alert message - AlertDialog.Builder builder = new AlertDialog.Builder(UpdaterActivity.this); + final AlertDialog.Builder builder = new AlertDialog.Builder(UpdaterActivity.this); builder.setCancelable(false); //open link to changelog //if the user agrees to upgrade @@ -248,7 +248,7 @@ public class UpdaterActivity extends XmppActivity { } private void showCancelDialog() { - AlertDialog.Builder builder = new AlertDialog.Builder(this); + final AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(R.string.cancel_update) .setCancelable(false) .setPositiveButton(R.string.yes, (dialog, id) -> { @@ -261,7 +261,7 @@ public class UpdaterActivity extends XmppActivity { UpdaterActivity.this.finish(); }) .setNegativeButton(R.string.no, (dialog, id) -> dialog.cancel()); - AlertDialog alert = builder.create(); + final AlertDialog alert = builder.create(); alert.show(); } |