mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-04-24 14:28:41 +02:00
show the Cancel button at selecting a single contact
This commit is contained in:
parent
5207abb620
commit
698ea25243
@ -41,8 +41,8 @@ class SelectContactsDialog(val activity: SimpleActivity, initialContacts: ArrayL
|
|||||||
val builder = AlertDialog.Builder(activity)
|
val builder = AlertDialog.Builder(activity)
|
||||||
if (allowSelectMultiple) {
|
if (allowSelectMultiple) {
|
||||||
builder.setPositiveButton(R.string.ok) { dialog, which -> dialogConfirmed() }
|
builder.setPositiveButton(R.string.ok) { dialog, which -> dialogConfirmed() }
|
||||||
builder.setNegativeButton(R.string.cancel, null)
|
|
||||||
}
|
}
|
||||||
|
builder.setNegativeButton(R.string.cancel, null)
|
||||||
|
|
||||||
builder.create().apply {
|
builder.create().apply {
|
||||||
activity.setupDialogStuff(view, this)
|
activity.setupDialogStuff(view, this)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user