fix #124, properly use "Start name with surname"

This commit is contained in:
tibbi 2018-04-10 22:11:00 +02:00
parent e999c3a275
commit 8c0ca77ed2
4 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class GroupContactsActivity : SimpleActivity(), RemoveFromGroupListener, Refresh
group_contacts_list.beVisibleIf(groupContacts.isNotEmpty()) group_contacts_list.beVisibleIf(groupContacts.isNotEmpty())
Contact.sorting = config.sorting Contact.sorting = config.sorting
Contact.startWithSurname = config.startNameWithSurname
groupContacts.sort() groupContacts.sort()
updateContacts(groupContacts) updateContacts(groupContacts)

View File

@ -103,6 +103,7 @@ class SelectContactActivity : SimpleActivity() {
} }
Contact.sorting = config.sorting Contact.sorting = config.sorting
Contact.startWithSurname = config.startNameWithSurname
contacts.sort() contacts.sort()
runOnUiThread { runOnUiThread {

View File

@ -29,6 +29,7 @@ class SelectContactsDialog(val activity: SimpleActivity, initialContacts: ArrayL
} }
Contact.sorting = activity.config.sorting Contact.sorting = activity.config.sorting
Contact.startWithSurname = activity.config.startNameWithSurname
allContacts.sort() allContacts.sort()
activity.runOnUiThread { activity.runOnUiThread {

View File

@ -92,6 +92,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
} }
Contact.sorting = config.sorting Contact.sorting = config.sorting
Contact.startWithSurname = config.startNameWithSurname
contacts.sort() contacts.sort()
allContacts = contacts allContacts = contacts