use a new model ContactSource

This commit is contained in:
tibbi
2018-02-02 11:30:11 +01:00
parent 6f82aadcb9
commit f0a2f585b8
7 changed files with 16 additions and 37 deletions

View File

@ -51,7 +51,7 @@ fun SimpleActivity.tryStartCall(contact: Contact) {
fun SimpleActivity.showContactSourcePicker(currentSource: String, callback: (newSource: String) -> Unit) {
ContactsHelper(this).getContactSources {
val items = ArrayList<RadioItem>()
val sources = it
val sources = it.map { it.name }
var currentSourceIndex = -1
sources.forEachIndexed { index, account ->
items.add(RadioItem(index, account))