From 8c0ca77ed29f825f3126d034ff788d7547cba093 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 10 Apr 2018 22:11:00 +0200 Subject: [PATCH] fix #124, properly use "Start name with surname" --- .../contacts/activities/GroupContactsActivity.kt | 1 + .../contacts/activities/SelectContactActivity.kt | 1 + .../simplemobiletools/contacts/dialogs/SelectContactsDialog.kt | 1 + .../simplemobiletools/contacts/fragments/MyViewPagerFragment.kt | 1 + 4 files changed, 4 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/GroupContactsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/GroupContactsActivity.kt index b32a0e1e..2ee2ab73 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/GroupContactsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/GroupContactsActivity.kt @@ -67,6 +67,7 @@ class GroupContactsActivity : SimpleActivity(), RemoveFromGroupListener, Refresh group_contacts_list.beVisibleIf(groupContacts.isNotEmpty()) Contact.sorting = config.sorting + Contact.startWithSurname = config.startNameWithSurname groupContacts.sort() updateContacts(groupContacts) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/SelectContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/SelectContactActivity.kt index 601f6e85..675e2ad1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/SelectContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/SelectContactActivity.kt @@ -103,6 +103,7 @@ class SelectContactActivity : SimpleActivity() { } Contact.sorting = config.sorting + Contact.startWithSurname = config.startNameWithSurname contacts.sort() runOnUiThread { diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/SelectContactsDialog.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/SelectContactsDialog.kt index 7f5e259d..358a7dcd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/SelectContactsDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/SelectContactsDialog.kt @@ -29,6 +29,7 @@ class SelectContactsDialog(val activity: SimpleActivity, initialContacts: ArrayL } Contact.sorting = activity.config.sorting + Contact.startWithSurname = activity.config.startNameWithSurname allContacts.sort() activity.runOnUiThread { diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt index ff5b07aa..7c3bd4cc 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt @@ -92,6 +92,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet) } Contact.sorting = config.sorting + Contact.startWithSurname = config.startNameWithSurname contacts.sort() allContacts = contacts