Added button to dismiss alert again
This commit is contained in:
parent
f557c08267
commit
b6bcea039d
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue