Simplify some AlertDialog.Builder calls.

This commit is contained in:
B. Petersen
2017-10-09 17:40:19 +02:00
parent 175a4ddf95
commit 28c86b4784
13 changed files with 71 additions and 90 deletions
@@ -111,7 +111,7 @@ public class WelcomeActivity extends Activity implements NotificationCenter.Noti
new AlertDialog.Builder(WelcomeActivity.this)
.setTitle(ApplicationLoader.applicationContext.getString(R.string.AppName) + " v" + getVersion())
.setMessage("© 2017 Delta Chat contributors" + "\n\n" + MrMailbox.getInfo() + "\n\n" + getAndroidInfo())
.setPositiveButton(ApplicationLoader.applicationContext.getString(R.string.OK), null)
.setPositiveButton(R.string.OK, null)
.show();
}
});
@@ -277,7 +277,7 @@ public class WelcomeActivity extends Activity implements NotificationCenter.Noti
else {
new AlertDialog.Builder(this)
.setMessage(ApplicationLoader.applicationContext.getString(R.string.PermissionStorage))
.setPositiveButton(ApplicationLoader.applicationContext.getString(R.string.PermissionOpenSettings), new DialogInterface.OnClickListener() {
.setPositiveButton(R.string.PermissionOpenSettings, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
try {