Added button to dismiss alert again

This commit is contained in:
dankl 2019-10-21 01:04:59 +02:00 committed by dankito
parent f557c08267
commit b6bcea039d
1 changed files with 4 additions and 1 deletions

View File

@ -89,7 +89,10 @@ open class AddAccountDialog : DialogFragment() {
this.dismiss() this.dismiss()
} }
else { else {
AlertDialog.Builder(context).setMessage("Could not add account: ${response.exception ?: response.errorsToShowToUser.joinToString("\n")}").show() AlertDialog.Builder(context)
.setMessage("Could not add account: ${response.exception ?: response.errorsToShowToUser.joinToString("\n")}")
.setPositiveButton(android.R.string.ok) { dialog, _ -> dialog.dismiss() }
.show()
} }
} }
} }