Skip to content
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

Fix FossifyOrg/Phone#28 (Missing contacts) #55

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

czarnyckm
Copy link
Contributor

@czarnyckm czarnyckm commented Jun 28, 2024

Fix FossifyOrg/Phone#28 (Missing contacts)
According to doc ContentResolver.getIsSyncable returns value >0 if it is syncable, 0 if not, and <0 if the state isn't known yet.
see also
FossifyOrg/Phone#28 (comment)

What is it?

  • [x ] Bugfix
  • Feature
  • Codebase improvement

Description of the changes in your PR

Before/After Screenshots/Screen Record

  • Before:
  • After:

Fixes the following issue(s)

Fixes FossifyOrg/Phone#28

Relies on the following changes

Acknowledgement

Fix FossifyOrg/Phone#28 (Missing contacts)
    According to doc ContentResolver.getIsSyncable returns value >0 if it is syncable, 0 if not, and <0 if the state isn't known yet.
@Aga-C
Copy link
Member

Aga-C commented Jun 28, 2024

Fixes FossifyOrg/Phone#28 and fixes FossifyOrg/Contacts#83.

@czarnyckm czarnyckm changed the title Fix FossifyOrg/#28 (Missing contacts) Fix FossifyOrg/Phone#28 (Missing contacts) Jun 29, 2024
@Honk2
Copy link
Contributor

Honk2 commented Aug 6, 2024

imho this is an important fix, because the app it not usable without.
When will it be merged? What is the reason that it is not merged yet?
Is there anything that needs to be done? I did not find anything about the procedures in the repo.

@Kasi07
Copy link

Kasi07 commented Aug 8, 2024

I agree. Is testing needed for this to be merged? In that case I would be open to test if someone could provide the apk.

@naveensingh
Copy link
Member

Unfortunately I haven't had the time to work on this and some other important issues in Fossify (got super busy recently with some personal but unexpected matters). Hopefully I'll have some time for work after the weekend.

Copy link

@Groctel Groctel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The correct check should be ContentResolver.getIsSyncable(it, AUTHORITY) > 0 given the meaning of the function's retcodes: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/services/core/java/com/android/server/content/SyncStorageEngine.java;l=260-289

@czarnyckm
Copy link
Contributor Author

I fix the check ContentResolver.getIsSyncable(it, AUTHORITY) > 0

@jrd
Copy link

jrd commented Aug 30, 2024

@naveensingh can you review and merge it please? I cannot use the app for months…

@naveensingh
Copy link
Member

I'm aware that this is an important issue for many but I'm currently stuck in a hospital. I'll try to release an update as soon as I have some free time.

@jrd
Copy link

jrd commented Aug 30, 2024

Ok I understand, thank you for the quick answer.

@Groctel
Copy link

Groctel commented Aug 30, 2024

@naveensingh Your wellbeing always comes first. Take all the time you need, but still get better soon ❤️❤️❤️

@naveensingh
Copy link
Member

Apparently, getIsSyncable() returns 0 i.e. NOT_SYNCABLE when Google Play Services is disabled.

@cpontvieux-systra
Copy link

That would explain the loosy doc (and variable name). It has meaning only if you have the Google Play Service running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fossify Phone (Contact Tab) and Contacts App not showing any contacts
8 participants