mirror of
https://github.com/FossifyOrg/Contacts.git
synced 2026-02-02 11:42:14 -05:00
show the Cancel button at selecting a single contact
This commit is contained in:
@@ -39,14 +39,14 @@ class SelectContactsDialog(val activity: SimpleActivity, initialContacts: ArrayL
|
||||
}
|
||||
|
||||
val builder = AlertDialog.Builder(activity)
|
||||
if (allowSelectMultiple) {
|
||||
builder.setPositiveButton(R.string.ok) { dialog, which -> dialogConfirmed() }
|
||||
builder.setNegativeButton(R.string.cancel, null)
|
||||
}
|
||||
if (allowSelectMultiple) {
|
||||
builder.setPositiveButton(R.string.ok) { dialog, which -> dialogConfirmed() }
|
||||
}
|
||||
builder.setNegativeButton(R.string.cancel, null)
|
||||
|
||||
builder.create().apply {
|
||||
activity.setupDialogStuff(view, this)
|
||||
}
|
||||
builder.create().apply {
|
||||
activity.setupDialogStuff(view, this)
|
||||
}
|
||||
}
|
||||
|
||||
private fun dialogConfirmed() {
|
||||
|
||||
Reference in New Issue
Block a user