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

View file

@ -89,7 +89,10 @@ open class AddAccountDialog : DialogFragment() {
this.dismiss()
}
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()
}
}
}