Skip to content

Commit

Permalink
Fix FossifyOrg/Phone#28 (Missing contacts) (#55)
Browse files Browse the repository at this point in the history
* Update ContactsHelper.kt

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.

* Update ContactsHelper.kt

Fix MR issue
  • Loading branch information
czarnyckm authored Sep 3, 2024
1 parent 4af9d5f commit 18f10be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ class ContactsHelper(val context: Context) {

val accounts = AccountManager.get(context).accounts
accounts.forEach {
if (ContentResolver.getIsSyncable(it, AUTHORITY) == 1) {
if (ContentResolver.getIsSyncable(it, AUTHORITY) > 0) {
var publicName = it.name
if (it.type == TELEGRAM_PACKAGE) {
publicName = context.getString(R.string.telegram)
Expand Down

0 comments on commit 18f10be

Please sign in to comment.