Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Contact details show only one of two different phone numbers that end in the same nine digits

Đang mở Phù hợp với người mới
#632 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, kotlin
Lĩnh vực
backend, mobile

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ả

bug needs triage
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
  1. Create a contact Alice in Phone storage with two phone numbers: +15551234567 and +445551234567 (a US and a UK number), and save.
  2. Open Alice from the contact list.
  3. 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FossifyOrg/Contacts

Tất cả issue của FossifyOrg/Contacts

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.