-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix FossifyOrg/Phone#28 (Missing contacts) #55
Conversation
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.
Fixes FossifyOrg/Phone#28 and fixes FossifyOrg/Contacts#83. |
imho this is an important fix, because the app it not usable without. |
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. |
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. |
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.
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
Fix MR issue
I fix the check |
@naveensingh can you review and merge it please? I cannot use the app for months… |
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. |
Ok I understand, thank you for the quick answer. |
@naveensingh Your wellbeing always comes first. Take all the time you need, but still get better soon ❤️❤️❤️ |
Apparently, |
That would explain the loosy doc (and variable name). It has meaning only if you have the Google Play Service running. |
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?
Description of the changes in your PR
Before/After Screenshots/Screen Record
Fixes the following issue(s)
Fixes FossifyOrg/Phone#28
Relies on the following changes
Acknowledgement