diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/AddAccountDialog.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/AddAccountDialog.kt index c58051c4..3ff0e06a 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/AddAccountDialog.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/AddAccountDialog.kt @@ -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() } } }