-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add account name to address book account name #1050
Add account name to address book account name #1050
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks and works good for me.
1385eb8
to
5fa1561
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I use info.serviceId
, it works and creates the address book accounts with the account name in the name.
However when the account is renamed (for instance from the version without account name because the service with service.id=info.id
was not present to the one with account name), I get this exception:
To reproduce:
- Sync addressbook → address book account is created
- Change
accountName
function, for instance add a word for testing to the account name - Sync addressbook again → address book is renamed, but notification is shown.
I think this will be addressed in #1039, no? I wonder how this happens because if the account name is changed, it should cause AccountManager.renameAccount()
without data loss.
app/src/main/kotlin/at/bitfire/davdroid/resource/LocalAddressBook.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/at/bitfire/davdroid/resource/LocalAddressBook.kt
Outdated
Show resolved
Hide resolved
Exactly. I started working this one, because only changing the account name should not interfere with the actual crash issue of old accounts not being deleted / renamed properly. |
5fa1561
to
da5c561
Compare
Nice 👍🏻 |
Purpose
#989 has renamed address book accounts. Now address book accounts don't include the actual account name anymore. This is desireable for usability though. This PR adds the actual account name back to the address book account name.
Short description
Checklist