Account picker for new contacts offers DAVx⁵'s main account; contacts saved there are never synced
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start at ContactsHelper.getDeviceContactSources(): locate its call site for the new-contact save picker and compare it with the existing-contacts path, since the filter now accepts getIsSyncable == 0. Read the context in #339 and commons#168 before narrowing the picker so existing contacts stay visible. Use ContentResolver.getSyncAdapterTypes() with authority com.android.contacts to keep only account types with an upload-capable contacts sync adapter; done means the DAVx⁵ main account no longer appears when saving a new contact.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Checklist
- I can reproduce the bug with the latest version given here.
- I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- This issue contains only one bug.
- I have read and understood the contribution guidelines.
Affected app version
1.6.0 (Commons 6.1.0)
Affected Android/Custom ROM version
Android 17
Affected device model
Google Pixel 8 Pro
How did you install the app?
F-Droid / IzzyOnDroid
Steps to reproduce the bug
- Set up a CardDAV account in DAVx⁵ 4.5.21-ose (account name = email address) and enable an address book.
- In Fossify Contacts, create a new contact and tap the account at the bottom.
- The picker shows two entries with the same address: "Contacts ([email protected]) #2" (the address book account, type
at.bitfire.davdroid.address_book) and "[email protected]" (DAVx⁵'s main account, typebitfire.at.davdroid). - Choose "[email protected]", save, and sync in DAVx⁵.
Expected behavior
The picker only offers accounts that can sync contacts. Or at least, a contact saved through Fossify ends up somewhere it gets synced.
Actual behavior
The contact is saved in DAVx⁵'s main account. That account type has no contacts sync adapter, as DAVx⁵ registers one only for the address book type (res/xml/sync_contacts.xml). The raw contact stays on the device with dirty=1 and no sourceid. dumpsys content shows no contacts sync for that account, and the contact never reaches the server. Fossify shows no warning.
Because new contacts default to the last used source (#9, #577), every following contact goes to the same place until the user notices.
Screenshots/Screen recordings
No response
Additional information
The main account shows up since commons#168, which changed the filter in ContactsHelper.getDeviceContactSources() from getIsSyncable(it, AUTHORITY) > 0 to >= 0 as a quick fix for #339. A value of 0 means "not syncable". As far as I can tell, that's what lets accounts without a contacts sync adapter into the list.
Suggestion: for the save picker, keep only accounts whose type has a contacts sync adapter that supports uploading (ContentResolver.getSyncAdapterTypes() with authority com.android.contacts). Showing existing contacts could stay as it is, so #339 doesn't come back.
- Ngôn ngữ chính
- Kotlin
- Star
- 917
- Fork
- 73
- Merge trung bình
- 2 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của FossifyOrg/Contacts
-
Contact details show only one of two different phone numbers that end in the same nine digitsĐang mởbug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
FossifyOrg/Contacts#632 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request needs triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
FossifyOrg/Contacts#176 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
FossifyOrg/Contacts#649 · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
FossifyOrg/Contacts#643 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
FossifyOrg/Contacts#642 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của FossifyOrg/Contacts
Issue tương tự
-
bug 🐞
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
grote/Transportr#1029 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
TeamAmaze/AmazeFileManager#4800 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
FossifyOrg/Gallery#1235 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mobile release verification reports missing build inputs with a custom Cargo target directoryĐang mởbug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsotto/sotto-authenticator#139 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement module:webview p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
NucleusFramework/Nucleus#1004 ·
Maintainer thường phản hồi trong vòng 1 ngày