-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Messy quick selection bar in contacts list #186
Comments
@naveensingh @Honk2 Thanks a lot to both for making this app better and better. In version 1.3.1 speed select letters are indeed ordered correctly (ie from A to Z) and work as expected when sorting by name or surname, but not if other sorting rules are chosen. In my case, when sorting by full name I get A-F-S-D-... |
I can reproduce it but only when sorting by date created. Full name seems to work fine. |
But it doesn't make much sense for the index letters to be sorted alphabetically when the contacts are sorted by date. It seems valid for that case. |
Do you have some contacts with a prefix? In my case I have some with "Doctor". So, I have "Doctor Name1 Surname1", "Doctor Name2 Surname2", and so on. When I sort by full name, the "doctors" are put in the "D group", say between David Something and Dwaine SomethingElse. |
Assume the following contacts, where "Avv" and "Doctor" are prefixes. The full name sorting would be the following. Anna Lastname The speed letters would show up as A-Z-B-C, as they seem to reflect the first letter of the name (not the full name) in which the contacts are shown. So, in addition to be difficult to find the right letter, if I would tap "Z" I would go to "Avv Zorro Lastname", while I would expect to go to "Zanon Lastname". |
The problem is that all display/sorting functions use commons/src/main/kotlin/org/fossify/commons/models/contacts/Contact.kt getNameToDisplay. This functions adds the prefix to the full name, which is correct, but will result in the prefix treat as name to sort and not a name part to ignore for sorting. Instead we need a function like getFullName, that omits the prefix when sorting for full name. Also getBubbleText would need to use getFullName instead of getNameToDisplay and some other places. |
For what it matters, I do not understand. If the prefix is part of the full name, as you also admit, it should be used when sorting by full name. The issue is not the sorting of the contacts, which in my view is correct, but the sorting of the quick select letters, which is still based on the name while you are sorting by full name. |
Just found another issue with the sorting. When one changes the option "Start name with surname" in the settings, the sorting mode is also changed (to "First name" or "Surname", depending on what you selected for "Start name with surname"). In my opinion, this is not the expected behaviour. The option "Start name with surname" in the settings should only change the way in which contacts are shown, not the way in which they are sorted. Appearance and sorting should be completely independent of each other. @naveensingh @Aga-C If indeed the current behaviour is not the proper one, should I open a different ticket for this? |
Let's keep it here, I'll take a 'closer look' when I'm back to work on Phone. |
It is quite easy. Lets talk about Gordon Freeman. He got a Phd in physics, so his full name to display is: Dr. Gordon Freeman. |
Checklist
Affected app version
1.2.0
Affected Android/Custom ROM version
Android 11
Affected device model
Oscal C60
How did you install the app?
GitHub releases
Steps to reproduce the bug
I do not know whether the name is correct, but by 'quick selection bar' I mean the list of letters A-Z on the right side of the contacts panel
1 Unselect 'start name with surname' from preferences, if selected
2 Go to the contacts panel
3 Change the sort order to 'surname'
4 The quick selection bar gets messy
In addition, when selecting a letter from that bar you do not go to the first surname starting with that letter in the contact list but to the first name starting with that letter
Expected behavior
The quick selection bar should always go from A to Z in alphabetical order and should allow the user to jump to the first item starting with that letter according with the selected order mode
Actual behavior
The quick selection bar seems to report the letters in the order they first appear in the contact list.
For instance, my contacts are shown in the 'Name Surname' format. So, when they are sorted by surname, they look like
FirstName America
SecondName Brazil
ThirdName China
FourthName France
LastName Italy
...
and the quick selection bar looks like
F
S
T
L
...
So, if I want to jump to surname 'France' I have to find where the 'F' has been placed in that crazy order. Most importantly, if I push 'F' I am shown 'FirstName America' because it is the first item starting with 'F' although I would expect to go to 'FourthName France', as mny sort mode is by surname and that is the first item with a surname starting with 'F'.
Screenshots/Screen recordings
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: