Contact details show only one of two different phone numbers that end in the same nine digits
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
Hướng nghiên cứu
Đọc ViewContactActivity.setupPhoneNumbers() quanh các dòng được liên kết 371–377 và hằng số độ dài so sánh ở các dòng 45–47. Dựa theo các bước tái hiện, kiểm tra cách màn hình chi tiết lọc số điện thoại, sau đó điều chỉnh bước kiểm tra trùng lặp để các số khác nhau có cùng chín chữ số cuối vẫn hiển thị. Hoàn tất khi cả hai số đều xuất hiện trên màn hình chi tiết liên hệ và các định dạng tương đương của cùng một số vẫn được xử lý chính xác.
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
Affected Android/Custom ROM version
Android 16
Affected device model
Xiaomi 17 Promax
How did you install the app?
F-Droid / IzzyOnDroid
Steps to reproduce the bug
- Create a contact
Alicein Phone storage with two phone numbers:+15551234567and+445551234567(a US and a UK number), and save. - Open
Alicefrom the contact list. - Tap Edit.
Expected behavior
The contact details screen lists both numbers, as the edit screen does.
Actual behavior
The details screen shows only +1 555-123-4567. The second number is not shown, so it cannot be called or copied from there. The edit screen shows both numbers, so the number is still stored.
Screenshots/Screen recordings
No response
Additional information
ViewContactActivity.setupPhoneNumbers() drops numbers whose normalized form has the same last 9 digits (COMPARABLE_PHONE_NUMBER_LENGTH = 9). Both numbers above end in 551234567:
https://github.com/FossifyOrg/Contacts/blob/8bbc84014f776b2199136a500799c21425ff0fe8/app/src/main/kotlin/org/fossify/contacts/activities/ViewContactActivity.kt#L45-L47
https://github.com/FossifyOrg/Contacts/blob/8bbc84014f776b2199136a500799c21425ff0fe8/app/src/main/kotlin/org/fossify/contacts/activities/ViewContactActivity.kt#L371-L377
This runs for every contact, not only when numbers of merged duplicate contacts are added (L344-L348), so it also hides a number within a single contact. I assume it is meant to drop the same number stored in different formats (e.g. +15551234567 and 5551234567). Possible fix: only treat numbers as the same when one normalized number is a suffix of the other and the shorter one has no country code, or compare E.164 forms, so different numbers are kept.
- Ngôn ngữ chính
- Kotlin
- Star
- 917
- Fork
- 73
- Merge trung bình
- 1 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 8
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
-
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 1-2 ngày Mức phù hợp với người mới 58/100
FossifyOrg/Contacts#633 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
FossifyOrg/Contacts#630 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
FossifyOrg/Contacts#618 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request needs triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
FossifyOrg/Contacts#614 · 1 bình luận ·
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 78/100
software-mansion/enriched-markdown#1084 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
lysine-dev/okhttp#9814 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getdictus/dictus-android#187 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
bryangerlach/rdgen#319 ·