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

@ -227,9 +227,9 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
"com.android.huawei.phone",
"Local Phone Account")
ContactsHelper(this).getContactTypes {
ContactsHelper(this).getContactSources {
var localAccountType = ""
it.forEach {
it.map { it.type }.forEach {
if (localAccountTypes.contains(it)) {
localAccountType = it
}