From b6bcea039d2049318003fcda3e6805b05137988a Mon Sep 17 00:00:00 2001 From: dankl Date: Mon, 21 Oct 2019 01:04:59 +0200 Subject: [PATCH] Added button to dismiss alert again --- .../fints4java/android/ui/dialogs/AddAccountDialog.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() } } }